Skip to content

Commit

Permalink
Test against Django 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
albertyw committed Aug 16, 2024
1 parent 7e35c19 commit 7686dfe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.2', '4.2', '5.0', 'main']
django-version: ['3.2', '4.2', '5.0', '5.1', 'main']
postgres-version: ['12', '16']
mariadb-version: ['10.6', '10.11', '11.2']
exclude:
Expand All @@ -26,6 +26,12 @@ jobs:
- python-version: '3.9'
django-version: '5.0'

# Django 5.1 doesn't support python <=3.9 (https://docs.djangoproject.com/en/5.1/faq/install/)
- python-version: '3.8'
django-version: '5.1'
- python-version: '3.9'
django-version: '5.1'

# only test Django dev with PostgreSQL 12 and MariaDB 10.4
- django-version: '3.2'
postgres-version: '12'
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ DJANGO =
3.2: dj32
4.2: dj42
5.0: dj50
5.1: dj51
main: djmain

[tox]
envlist =
py{38,39,310}-dj32-{sqlite3,mysql,postgresql}
py{38,39,310,311}-dj{41,42,50,main}-{sqlite3,mysql,postgresql}
py312-dj{42,50,main}-{sqlite3,mysql,postgresql}
py{38,39,310,311,312}-dj42-{sqlite3,mysql,postgresql}
py{310,311,312}-dj{50,51,main}-{sqlite3,mysql,postgresql}

[testenv]
usedevelop = True
Expand All @@ -31,6 +32,7 @@ deps =
dj32: django>=3.2,<3.3
dj42: django>=4.2,<4.3
dj50: django>=5.0,<5.1
dj51: django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
py312: setuptools
setenv =
Expand Down

0 comments on commit 7686dfe

Please sign in to comment.