-
Notifications
You must be signed in to change notification settings - Fork 584
/
Copy pathtox.ini
68 lines (61 loc) · 1.42 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
68
[tox]
envlist =
flake8
isort
docs
frontend
py{36,37,38}-dj{22}-swap
py{36,37,38}-dj{22}-noswap
py{36,37,38,39}-dj{30,31}-swap
py{36,37,38,39}-dj{30,31}-noswap
py{36,37,38,39,310}-dj32-swap
py{36,37,38,39,310}-dj32-noswap
py{38,39,310,311}-dj42-swap
py{38,39,310,311}-dj42-noswap
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
skip_missing_interpreters=True
[testenv]
deps =
dj22: -r tests/requirements/django-2.2.txt
dj30: -r tests/requirements/django-3.0.txt
dj31: -r tests/requirements/django-3.1.txt
dj32: -r tests/requirements/django-3.2.txt
dj40: -r tests/requirements/django-4.0.txt
dj41: -r tests/requirements/django-4.1.txt
dj42: -r tests/requirements/django-4.2.txt
commands =
{envpython} --version
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report
setenv =
swap: CUSTOM_IMAGE=custom_image.Image
[testenv:flake8]
deps = flake8
commands = flake8
[testenv:isort]
deps = isort
commands = isort -c --df filer
skip_install = true
[testenv:docs]
changedir = docs
deps =
sphinx
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
# sphinx-build -W -b html -d build/doctrees . build/html
skip_install = true
[testenv:frontend]
whitelist_externals =
nvm
npm
gulp
commands =
gulp ci