CI: fix incorrect syntax
Django CI/CD / test (push) Successful in 1m21s Details
Django CI/CD / build-and-push (push) Successful in 1m25s Details

This commit is contained in:
Lukáš Kucharczyk 2023-11-18 10:46:29 +01:00
parent eaeb09598e
commit c5b9fbddf4
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 12 additions and 6 deletions

View File

@ -6,14 +6,20 @@ on:
jobs: jobs:
test: test:
runs-on: python:3.12 runs-on: ubuntu-latest
steps: steps:
- python -m pip install poetry - uses: actions/checkout@v4
- poetry install - uses: actions/setup-python@v4
- poetry env info with:
- poetry run python manage.py migrate python-version: 3.12
- poetry run pytest - run: |
python -m pip install poetry
poetry install
poetry env info
poetry run python manage.py migrate
poetry run pytest
build-and-push: build-and-push:
needs: test
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
steps: steps: