Skip to content

tests django app

tests django app #63

Workflow file for this run

name: Django CI
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
pip install pytest==7.3.1
pip install pytest-django==4.5.2
export DJANGO_SETTINGS_MODULE=cs_app.test_settings
pytest cs_app/main/tests/