Skip to content

RTD py version

RTD py version #41

Workflow file for this run

name: Tests
on:
push:
pull_request:
jobs:
test-sqlite:
name: py-${{ matrix.python }} dj-${{ matrix.django }}
runs-on: ubuntu-latest
strategy:
matrix:
include:
# Django LTS on Python oldest to latest - dj3.2, py3.9
- python: 3.9
django: 3.2
# Django supported on latest LTS - dj4.2, py3.11
- python: 3.11
django: 4.2
# Django supported on latest LTS - dj5.1, py3.12
- python: 3.12
django: 5.1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install "django~=${{ matrix.django }}.0"
- name: Set Python path
run: |
echo "PYTHONPATH=." >> $GITHUB_ENV
- name: Test
run: |
pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
name: ${{ matrix.python }}-${{ matrix.django }}