-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
63 lines (59 loc) · 1.71 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
[tox]
isolated_build = True
env_list =
py{38,39,310}-django32
py{38,39,310}-django40
py{38,39,310,311}-django41
[pytest]
django_find_project = false
DJANGO_SETTINGS_MODULE = tests.settings
addopts = --doctest-modules
pythonpath = .
testpaths = tests
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
allowlist_externals = poetry
commands_pre =
poetry install -n --no-ansi --no-root --sync --all-extras --with=test
commands =
poetry run pytest --color=no --import-mode importlib
setenv =
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}
# TODO: there must be a better way than this... this sucks.
[testenv:py38-django32]
commands_pre =
{[testenv]commands_pre}
poetry run pip install Django~=3.2.0
poetry run python -m django --version
poetry run python --version
[testenv:py39-django32]
commands_pre = {[testenv:py38-django32]commands_pre}
[testenv:py310-django32]
commands_pre = {[testenv:py38-django32]commands_pre}
[testenv:py38-django40]
commands_pre =
{[testenv]commands_pre}
poetry run pip install Django~=4.0.0
poetry run python -m django --version
poetry run python --version
[testenv:py39-django40]
commands_pre = {[testenv:py38-django40]commands_pre}
[testenv:py310-django40]
commands_pre = {[testenv:py38-django40]commands_pre}
[testenv:py38-django41]
commands_pre =
{[testenv]commands_pre}
poetry run pip install Django~=4.1.0
poetry run python -m django --version
poetry run python --version
[testenv:py39-django41]
commands_pre = {[testenv:py38-django41]commands_pre}
[testenv:py310-django41]
commands_pre = {[testenv:py38-django41]commands_pre}
[testenv:py311-django41]
commands_pre = {[testenv:py38-django41]commands_pre}