Skip to content

Bug fix to workflow (again) #19

Bug fix to workflow (again)

Bug fix to workflow (again) #19

Workflow file for this run

name: Django CI
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest-django
- name: Run tests
working-directory: ./mysite
run: |
DJANGO_SETTINGS_MODULE=mysite.settings pytest dss/tests.py
python manage.py test api dpp