-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
74 lines (64 loc) · 1.63 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
[tox]
envlist =
clean
py{37,38,39,310}-django{32}
py{311}-django{41}
coverage-html
skipsdist = True
skip_missing_interpreters = True
basepython = python3.10
isolated_build = True
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv:clean]
deps =
coverage
setenv =
commands =
-coverage erase
[testenv:coverage-html]
basepython = python3.9
deps =
coverage
setenv =
commands =
-coverage combine --append
coverage html --include="./src/*" --omit="*/admin.py,*/test*,*/migrations/*"
[testenv:upgrade-deps]
whitelist_externals = cp
deps =
pip-tools
setenv =
commands =
pip-compile {posargs} --output-file requirements-django32.txt requirements/django32.txt requirements/base.txt requirements/forced-upgrade.txt
pip-compile {posargs} --output-file requirements-django40.txt requirements/django40.txt requirements/base.txt requirements/forced-upgrade.txt
pip-compile {posargs} --output-file requirements-django41.txt requirements/django41.txt requirements/base.txt requirements/forced-upgrade.txt
[testenv:coverage-xml]
basepython = python3.9
deps =
coverage
setenv =
commands_pre =
commands =
-coverage combine --append
coverage xml --include="./src/*" --omit="*/admin.py,*/test*,*/migrations/*"
[testenv]
passenv = DATABASE_URL
deps =
coverage
-r requirements-django{env:DJANGO_VER}.txt
setenv =
LC_ALL=C.UTF-8
LANG=C.UTF-8
PYTHONPATH = {toxinidir}/src
PYTHONWARNINGS=once::DeprecationWarning
django32: DJANGO_VER=32
django40: DJANGO_VER=40
django41: DJANGO_VER=41
commands =
coverage run -p runtests.py {posargs}