-
Notifications
You must be signed in to change notification settings - Fork 21
/
tox.ini
50 lines (43 loc) · 1.07 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
[tox]
envlist =
py{3.6,3.7,3.8,3.9,3.10,3.11,3.12,3.13}-cryptography{40.0.2}
postgres
windows
[testenv]
allowlist_externals=
sh
setenv =
PYTHONPATH = {toxinidir}{:}{toxinidir}/tests/testapp
basepython =
py3.6: python3.6
py3.7: python3.7
py3.8: python3.8
py3.9: python3.9
py3.10: python3.10
py3.11: python3.11
py3.12: python3.12
py3.13: python3.13
postgres: python3.9
windows: python3.8
deps =
-r{toxinidir}/requirements/test.txt
cryptography40.0.2: cryptography==40.0.2
commands =
sh -c 'tests/testapp/manage.py makemigrations --check'
python -O -m pytest {posargs: --color=no}
[testenv:postgres]
deps =
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/postgres.txt
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/tests/testapp
DJANGO_SETTINGS_MODULE = testapp.postgres_settings
commands =
python -O -m pytest {posargs: --color=no}
[testenv:windows]
deps =
-r{toxinidir}/requirements/test.txt
setenv =
PYTHONPATH = {toxinidir}{:}{toxinidir}/tests/testapp
commands =
python -O -m pytest {posargs: --color=no} -m windows