-
-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Django and Python version support
- Loading branch information
1 parent
3f37b3d
commit 593fa02
Showing
3 changed files
with
53 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,55 @@ | ||
[tox] | ||
envlist = | ||
py{36,37,38,39}-dj{22,30,31,32} | ||
py{38,39}-djmain | ||
qa | ||
py{37,38,39,py3}-dj22 | ||
py{37,38,39,310,py3}-dj32 | ||
py{38,39,310,py3}-dj40 | ||
py{38,39,310}-djmain | ||
py310-djqa | ||
|
||
[gh-actions] | ||
python = | ||
3.6: py36, qa | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310 | ||
pypy3: pypy3 | ||
|
||
[gh-actions:env] | ||
DJANGO = | ||
2.2: dj22 | ||
3.0: dj30 | ||
3.1: dj31 | ||
3.2: dj32 | ||
4.0: dj40 | ||
main: djmain | ||
qa: djqa | ||
|
||
[testenv] | ||
deps = | ||
coverage | ||
dj22: django>=2.2,<2.3 | ||
dj30: django>=3.0,<3.1 | ||
dj31: django>=3.1,<3.2 | ||
dj32: django>=3.2,<3.3 | ||
dj40: django>=4.0,<4.1 | ||
djmain: https://github.com/django/django/archive/main.tar.gz | ||
usedevelop = True | ||
setenv = | ||
PYTHONDONTWRITEBYTECODE=1 | ||
# Django development version is allowed to fail the test matrix | ||
ignore_outcome = | ||
djmain: True | ||
ignore_errors = | ||
djmain: True | ||
commands = | ||
{envbindir}/coverage run {envbindir}/django-admin test -v2 --settings=tests.settings | ||
{envbindir}/coverage report -m | ||
{envbindir}/coverage xml | ||
|
||
[testenv:qa] | ||
[testenv:py310-djqa] | ||
ignore_errors = true | ||
basepython = python3.10 | ||
deps = | ||
black | ||
django | ||
prospector | ||
skip_install = true | ||
commands = | ||
prospector | ||
black -t py36 --check --diff . | ||
black -t py38 --check --diff . |