Re-add test step to CI

This commit is contained in:
Lukáš Kucharczyk 2023-11-18 10:32:12 +01:00
parent 555608d8c6
commit e449164fdb
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 9 additions and 1 deletions

View File

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