forked from jazzband/django-silk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (52 loc) · 1.15 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
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
DJANGO =
2.2: dj22
3.1: dj31
3.2: dj32
4.0: dj40
main: djmain
[tox]
envlist =
py{36,37,38,39}-dj{22,31}-{sqlite3,mysql,postgresql}
py{36,37,38,39,310}-dj32-{sqlite3,mysql,postgresql}
py{38,39,310}-djmain-{sqlite3,mysql,postgresql}
[testenv]
usedevelop = True
ignore_outcome =
djmain: True
changedir = {toxinidir}/project
deps =
-rrequirements.txt
mysql: mysqlclient
postgresql: psycopg2-binary<2.9
dj22: django>=2.2,<2.3
dj31: django>=3.1,<3.2
dj32: django>=3.2,<3.3
dj40: django>=4.0,<4.1
djmain: https://github.com/django/django/archive/main.tar.gz
setenv =
PYTHONPATH={toxinidir}:{toxinidir}
PYTHONDONTWRITEBYTECODE=1
sqlite3: DB_ENGINE=sqlite3
sqlite3: DB_NAME=":memory:"
mysql: DB_ENGINE=mysql
mysql: DB_NAME=mysql
mysql: DB_USER=root
mysql: DB_PASSWORD=mysql
mysql: DB_PORT=3306
postgresql: DB_ENGINE=postgresql
postgresql: DB_NAME=postgres
postgresql: DB_PASSWORD=postgres
commands = pytest
[flake8]
ignore =
E501,
E203,
W503