Skip to content

Commit

Permalink
Added testing on django 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmichalicek committed Jan 21, 2024
1 parent d124b3e commit c6c141b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
django-version: ["django==3.2.*", "django==4.1.*", "django==4.2.*"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
django-version: ["django==3.2.*", "django==4.2.*", "django==5.0.*"]
exclude:
- python-version: "3.11"
django-version: "django==3.2.*"
- python-version: "3.8"
django-version: "5.0.x"
- python-version: "3.9"
django-version: "5.0.x"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
)
8 changes: 6 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ ignore_basepython_conflict = True
envlist =
{py37,py38,py39,py310}-django-32
{py38,py39,py310,py311}-django-41
{py38,py39,py310,py311}-django-42
{py38,py39,py310,py311,py312}-django-42
{py310,py311,py312}-django-50
coverage

[gh-actions]
Expand All @@ -15,6 +16,7 @@ python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
setenv =
Expand All @@ -27,14 +29,16 @@ deps =
django-40: Django>=4.0,<4.1
django-41: Django>=4.1,<4.2
django-42: Django>=4.2,<4.3
django-50: Django>=4=5.0,<5.1
-r{toxinidir}/requirements-test.txt
basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
coverage: python3.10
py312: python3.12
coverage: python3.12

[testenv:coverage]
commands=
Expand Down

0 comments on commit c6c141b

Please sign in to comment.