5 Commits

Author SHA1 Message Date
a1b3e1efc2 Revert "Add test workflow"
This reverts commit 47f008628f.
2023-11-18 10:39:43 +01:00
d79f387de7 Revert "Move the test workflow out"
This reverts commit 32c632f7a6.
2023-11-18 10:39:29 +01:00
32c632f7a6 Move the test workflow out 2023-11-18 10:36:41 +01:00
47f008628f Add test workflow 2023-11-18 10:36:28 +01:00
e449164fdb Re-add test step to CI 2023-11-18 10:32:12 +01:00

View File

@ -2,12 +2,20 @@ name: Django CI/CD
on: on:
push: push:
branches: [ main ]
paths-ignore: [ 'README.md' ] paths-ignore: [ 'README.md' ]
jobs: jobs:
test:
runs-on: python:3.12
steps:
- 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:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4