Skip to content

Commit

Permalink
update testing to Django 5.0, Python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Apr 12, 2024
1 parent b18a005 commit dc45fbe
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 14 deletions.
39 changes: 32 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,42 @@ jobs:

strategy:
matrix:
DJANGO_VERSION: ['3.1.*', '3.2.*', '4.0.*', '4.1.*']
python-version: ['3.7', '3.8', '3.9', '3.10']
DJANGO_VERSION: ['3.1.*', '3.2.*', '4.0.*', '4.1.*', '4.2.*', '5.0.*']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
exclude:
- DJANGO_VERSION: '4.1.*'
- DJANGO_VERSION: '3.1.*'
python-version: '3.10'
- DJANGO_VERSION: '3.1.*'
python-version: '3.11'
- DJANGO_VERSION: '3.1.*'
python-version: '3.12'

- DJANGO_VERSION: '3.2.*'
python-version: '3.11'
- DJANGO_VERSION: '3.2.*'
python-version: '3.12'

- DJANGO_VERSION: '4.0.*'
python-version: '3.7'
- DJANGO_VERSION: '4.0.*'
python-version: '3.11'
- DJANGO_VERSION: '4.0.*'
python-version: '3.12'

- DJANGO_VERSION: '4.1.*'
python-version: '3.7'
- DJANGO_VERSION: '3.1.*'
python-version: '3.10'
- DJANGO_VERSION: '2.2.*'
python-version: '3.10'
- DJANGO_VERSION: '4.2.*'
python-version: '3.12'

- DJANGO_VERSION: '4.2.*'
python-version: '3.7'

- DJANGO_VERSION: '5.0.*'
python-version: '3.7'
- DJANGO_VERSION: '5.0.*'
python-version: '3.8'
- DJANGO_VERSION: '5.0.*'
python-version: '3.9'
fail-fast: false

services:
Expand Down
22 changes: 15 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
[tox]
envlist =
py{310,39,38}
py{310,39,38}-dj{40,41},
py{312,311,310}-dj50,
py{312,311,310,39,38}-dj42,
py{311,310,39,38}-dj41,
py{310,39,38}-dj40,
py{310,39,38,37,36}-dj32,
py{39,38,37,36}-dj{30,31},
py{38,37,36,35}-dj{20,21,22},
py{39,38,37,36}-dj31,

[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/plans_payments
commands =
python --version
python manage.py --version
python -W error::DeprecationWarning -m coverage run manage.py test
deps =
django-31: Django>=3.1,<3.2
django-32: Django>=3.2,<3.3
django-40: Django>=4.0,<4.1
django-41: Django>=4.1,<4.2
-r{toxinidir}/requirements_test.txt
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12

0 comments on commit dc45fbe

Please sign in to comment.