Skip to content

Add support for Python 3.13 and Django 5.1 #1274

Add support for Python 3.13 and Django 5.1

Add support for Python 3.13 and Django 5.1 #1274

Workflow file for this run

---
name: Run Tests
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
release:
types: [released]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
django-version: ["3.2.0", "4.1.3", "4.2.8", "5.0.7", "5.1"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
exclude:
# excludes Python 3.8 and 3.9 for Django 5.0.7 and 5.1
- django-version: "5.0.7"
python-version: "3.8"
- django-version: "5.0.7"
python-version: "3.9"
- django-version: "5.1"
python-version: "3.8"
- django-version: "5.1"
python-version: "3.9"
# Django 5.1 requires Python 3.10 or higher
- django-version: "5.1"
python-version: "3.9"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Run tests
run: |
poetry install -E captcha
poetry run pip install "Django~=${{ matrix.django-version }}"
make test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4