Skip to content

docs: 📚 add testing's core components in documentation #484

docs: 📚 add testing's core components in documentation

docs: 📚 add testing's core components in documentation #484

Workflow file for this run

name: tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-tests-across-versions:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.2.*', '4.1.*', '4.2.*', '5.0b1']
django-ninja-version: ['0.21.*', '0.22.*', '1.0rc0']
exclude:
- python-version: '3.11'
django-version: '3.2.*'
- python-version: '3.8'
django-version: '5.0b1'
- python-version: '3.9'
django-version: '5.0b1'
- python-version: '3.12'
django-version: '3.2.*'
- python-version: '3.12'
django-version: '4.1.*'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
pip install django==${{ matrix.django-version }}
pip install django-ninja==${{ matrix.django-ninja-version }}
- name: Run tests with coverage
env:
DJANGO_SETTINGS_MODULE: tests.test_settings
run: |
coverage run -m django test
coverage report --fail-under=100