CI: fix incorrect syntax
This commit is contained in:
parent
eaeb09598e
commit
db893e0cd3
|
@ -6,14 +6,20 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: python:3.12
|
runs-on: ubuntu-latest
|
||||||
|
container: python:3.12
|
||||||
steps:
|
steps:
|
||||||
- python -m pip install poetry
|
- name: Checkout
|
||||||
- poetry install
|
uses: actions/checkout@v4
|
||||||
- poetry env info
|
- name: Run test
|
||||||
- poetry run python manage.py migrate
|
run: |
|
||||||
- poetry run pytest
|
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:
|
Loading…
Reference in New Issue