cicd: Run tests automatically

This commit is contained in:
lagertonne 2024-11-06 22:26:48 +01:00
parent be02a3e163
commit a65acdff34

View file

@ -3,7 +3,25 @@ on:
branches: branches:
- testing - testing
jobs: jobs:
test:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache-dependency-path: '**/requirements.prod.txt'
- name: Install dependencies
working-directory: core
run: pip3 install -r requirements.dev.txt
- name: Run django tests
working-directory: core
run: python3 manage.py test
deploy: deploy:
needs: [test]
runs-on: docker runs-on: docker
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4