-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
45 lines (39 loc) · 882 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[tox]
envlist =
py36-dj{21, 22, 30, 31, 32}
py37-dj{21, 22, 30, 31, 32}
py38-dj{21, 22, 30, 31, 32, 40}
py39-dj{21, 22, 30, 31, 32, 40}
py310-dj{40}
lint, docs
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv:docs]
deps =
sphinx
sphinx_rtd_theme
commands =
python setup.py build_sphinx
[testenv:lint]
deps =
flake8
commands =
flake8 flag tests testapp {posargs}
[testenv]
deps =
-rtestapp/requirements.txt
dj22: Django>=2.2,<2.3
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
djmain: https://github.com/django/django/archive/main.tar.gz
usedevelop = True
commands =
python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m coverage run --parallel-mode -m pytest {posargs}
setenv =
PYTHONDONTWRITEBYTECODE=1