-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
58 lines (43 loc) · 1.12 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
[tox]
envlist =
precommit
py37-django{22,30,31,32}
py38-django{22,30,31,32,40,41}
py39-django{22,30,31,32,40,41}
py310-django{32,40,41}
isolated_build = True
minversion = 3.25.0
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310, precommit
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
[testenv:py{37,38,39,310}-django{22,30,31,32,40,41}]
deps =
environs[django]~=9.5.0
mysqlclient~=2.1.0
psycopg2~=2.9.3
pytest-django~=4.5.2
pytest~=7.1.2
django22: django~=2.2.0
django30: django~=3.0.0
django31: django~=3.1.0
django32: django~=3.2.0
django40: django~=4.0.0
django41: django~=4.1.0
setenv =
MYSQL_DATABASE_URL = {env:MYSQL_DB_URL:mysql://localhost/sansdb}
POSTGRES_DATABASE_URL = {env:POSTGRES_DB_URL:postgres://localhost/sansdb}
SQLITE_DATABASE_URL = {env:SQLITE_DB_URL:sqlite://:memory:}
commands = python -m pytest {posargs:tests} -vv
[testenv:precommit]
deps =
pre-commit~=2.17.0
commands = pre-commit run --all-files --show-diff-on-failure
[pytest]
DJANGO_SETTINGS_MODULE = tests.settings
django_find_project = False