-
Notifications
You must be signed in to change notification settings - Fork 102
/
tox.ini
109 lines (102 loc) · 2.21 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[tox]
envlist =
py{36,37,38,39}-dj22-{grp,nogrp}
py{36,37,38,39,310}-dj32-{grp,nogrp}
py{38,39,310}-dj40-{grp,nogrp}
py{38,39,310,311}-dj41-{grp,nogrp}
py{38,39,310,311,312}-dj42-{grp,nogrp}
py{310,311,312}-dj50-{grp,nogrp}
py{310,311,312}-dj51-nogrp
black,flake8
skipsdist=True
[testenv]
commands =
pytest --junitxml={toxinidir}/reports/test-{envname}.xml {posargs}
usedevelop = True
setenv =
COVERAGE_FILE={toxworkdir}/coverage/.coverage.{envname}
passenv =
SCREENSHOT_OUTPUT_DIR
PIXELMATCH_BIN
CI
GITHUB_*
RUNNER_*
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
DATABASE_URL
deps =
-e.[test]
selenium
coverage
django-polymorphic
# setuptools is required until a django-polymorphic release includes
# the fix for jazzband/django-polymorphic#599
setuptools
boto3
django-storages
dj22: Django>=2.2,<3.0
dj32: Django>=3.2,<4.0
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<4.3
dj50: Django>=5.0,<5.1
dj51: Django>=5.1a1,<5.2
dj22-grp: django-grappelli>=2.13,<2.14
dj32-grp: django-grappelli>=2.15,<2.16
dj40-grp: django-grappelli==3.0.8
dj41-grp: django-grappelli==3.0.8
dj42-grp: django-grappelli>=3.0,<3.1
dj50-grp: django-grappelli>=4.0,<4.1
[testenv:black]
basepython = python3.9
deps =
black
commands =
black nested_admin docs setup.py {posargs:--diff}
[testenv:flake8]
basepython = python3.9
deps =
flake8
commands =
flake8 nested_admin docs setup.py
[testenv:coverage-report]
skip_install = true
deps = coverage
setenv=COVERAGE_FILE=.coverage
changedir = {toxworkdir}/coverage
commands =
coverage combine
coverage report
coverage xml
[testenv:codecov]
skip_install = true
deps = codecov
depends = coverage-report
changedir = {toxinidir}
passenv =
CI
GITHUB_*
RUNNER_*
CODECOV_*
commands =
codecov -F python --file {toxworkdir}/coverage/coverage.xml {posargs}
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
DJANGO =
2.2: dj22
3.2: dj32
4.0: dj40
4.1: dj41
4.2: dj42
5.0: dj50
5.1: dj51
GRAPPELLI =
0: nogrp
1: grp