-
Notifications
You must be signed in to change notification settings - Fork 485
/
tox.ini
80 lines (72 loc) · 1.96 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
[tox]
envlist =
py{38,39,310}-django32-{mysql,postgres-psycopg2,sqlite}
py{38,39,310}-django40-{mysql,postgres-psycopg2,sqlite}
py{38,39,310,311}-django41-{mysql,postgres-psycopg2,sqlite}
py{38,39,310,311,312}-django42-{mysql,postgres-psycopg3,sqlite}
py{310,311,312}-django50-{mysql,postgres-psycopg3,sqlite}
py{310,311,312}-django51-{mysql,postgres-psycopg3,sqlite}
toxworkdir=/tmp/.tox
[testenv]
commands = pytest -s --cov --cov-append actstream/ runtests/testapp runtests/testapp_nested/
deps =
django-rest-framework
rest-framework-generic-relations
drf-spectacular
coverage
pytest
pytest-cov
pytest-django
coverage>=4.5.1
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
mysql: mysqlclient>=2.0.0
mysql: django-mysql>=2.4.1
postgres-psycopg2: psycopg2-binary>=2.8
postgres-psycopg3: psycopg-binary>=3.2
setenv =
; GITHUB_WORKFLOW=true ; Set this to force enable mysql/postgres dbs
mysql: DATABASE_ENGINE=mysql
postgres-psycopg2: DATABASE_ENGINE=postgresql
postgres-psycopg3: DATABASE_ENGINE=postgresql
; Pass this to force enable mysql/postgres dbs
passenv =
GITHUB_WORKFLOW
MYSQL_HOST
MYSQL_NAME
MYSQL_USER
MYSQL_PASSWORD
MYSQL_PORT
POSTGRES_HOST
POSTGRES_NAME
POSTGRES_PORT
POSTGRES_USER
POSTGRES_PASSWORD
SQLITE_NAME
usedevelop = True
[testenv:ipdb]
deps = {[testenv]deps} ipdb ipython
commands = {[testenv]commands} --pdb --pdbcls=IPython.terminal.debugger:TerminalPdb
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html
[travis:env]
DJANGO =
5.1: django51
5.0: django50
4.2: django42
4.1: django41
4.0: django40
3.2: django32
DATABASE =
mysql: mysql
postgres-psycopg2: postgresql
postgres-psycopg3: postgresql
sqlite: sqlite