-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Expand file tree
/
Copy pathtox.ini
More file actions
55 lines (48 loc) · 1.21 KB
/
tox.ini
File metadata and controls
55 lines (48 loc) · 1.21 KB
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
46
47
48
49
50
51
52
53
54
55
[tox]
envlist =
{py310}-{django42,django51,django52}
{py311}-{django42,django51,django52}
{py312}-{django42,django51,django52,django60,djangomain}
{py313}-{django51,django52,django60,djangomain}
{py314}-{django52,django60,djangomain}
base
dist
docs
[testenv]
commands = pytest --cov --cov-report xml {posargs}
envdir = {toxworkdir}/venvs/{envname}
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
dependency_groups =
test
optional
django42: django42
django50: django50
django51: django51
django52: django52
django60: django60
djangomain: djangomain
[testenv:base]
; Ensure optional dependencies are not required
dependency_groups =
test
deps =
[testenv:dist]
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning runtests.py --no-pkgroot --staticfiles {posargs}
dependency_groups =
test
optional
[testenv:docs]
skip_install = true
commands =
mkdocs build
dependency_groups =
test
docs
[testenv:py312-djangomain]
ignore_outcome = true
[testenv:py313-djangomain]
ignore_outcome = true
[testenv:py314-djangomain]
ignore_outcome = true