Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: test on Django 4.0 #495

Merged
merged 4 commits into from
Jan 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,13 @@ jobs:
max-parallel: 5
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
django-version: ['2.2', '3.1', '3.2', 'main']
drf-version: ['3.10', '3.11', '3.12']
django-version: ['2.2', '3.2', '4.0', 'main']
drf-version: ['3.10', '3.11', '3.12', '3.13']
exclude:
- python-version: '3.7'
django-version: 'main'
- python-version: '3.8'
django-version: 'main'
- django-version: '3.1'
drf-version: '3.10'
- python-version: '3.10'
django-version: '2.2'
- python-version: '3.10'
django-version: '3.1'

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
Expand Down
15 changes: 7 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
[tox]
envlist=
py{37,38,39}-dj22-drf310-tests
py{37,38,39}-dj{22,31}-drf{311,312}-tests
py{37,38,39,310}-dj32-drf{311,312}-tests
py{38,39,310}-djmain-drf312-tests
py{37,38,39,310}-dj{22,32}-drf{311,312,313}-tests
py{38,39,310}-dj{40,main}-drf313-tests
docs

[gh-actions]
python=
3.7: py37
3.8: py38, docs, lint
3.8: py38, docs
3.9: py39
3.10: py310

[gh-actions:env]
DJANGO=
2.2: dj22
3.0: dj30
3.1: dj31
3.2: dj32
4.0: dj40
main: djmain
DRF=
3.10: drf310
3.11: drf311
3.12: drf312
3.13: drf313

[testenv]
usedevelop=True
Expand All @@ -35,13 +34,13 @@ setenv=
PYTHONDONTWRITEBYTECODE=1
deps=
dj22: Django>=2.2,<2.3
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
drf310: djangorestframework>=3.10,<3.11
drf311: djangorestframework>=3.11,<3.12
drf312: djangorestframework>=3.12,<3.13
drf313: djangorestframework>=3.13,<3.14
djmain: https://github.com/django/django/archive/main.tar.gz
djmain: pytz
allowlist_externals=make

[testenv:docs]
Expand Down