-
-
Notifications
You must be signed in to change notification settings - Fork 371
/
tox.ini
67 lines (63 loc) · 1.28 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
envlist =
pypy3-dj{41,42}
py{39,310,311}-dj41
py{39,310,311,312}-dj42
py{310,311,312}-dj50
py{310,311,312}-dj51
py{310,311,312}-djmain
docs
[gh-actions]
python =
3.9: py39, docs
3.10: py310
3.11: py311
3.12: py312
pypy3: pypy3
[gh-actions:env]
DJANGO =
4.1: dj41
4.2: dj42
5.0: dj50
5.1: dj51
main: djmain
[testenv]
basepython =
pypy3: pypy3
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
deps =
pypy3: mock
dj32: Django>=3.2,<3.3
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
dj51: Django>=5.1,<5.2
djmain: https://github.com/django/django/archive/main.tar.gz
jinja2
coverage
jsmin==3.0.0
ply==3.4
css-html-js-minify==2.5.5
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
commands =
npm install
{envbindir}/coverage run --source pipeline {envbindir}/django-admin test {posargs:tests}
{envbindir}/coverage report
{envbindir}/coverage xml
whitelist_externals = npm
ignore_outcome =
djmain: True
ignore_errors =
djmain: True
allowlist_externals=npm
[testenv:docs]
basepython = python3.9
changedir = docs
deps = sphinx
commands =
{envbindir}/sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html