-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtox.ini
47 lines (43 loc) · 1.09 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
[tox]
envlist = {py38,py39,py310}-django{320,400,410,420}-{sqlite,mysql,postgres},lint
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[testenv]
deps =
django320: Django>=3.2,<3.3
django400: Django>=3.3,<4.1
django410: Django>=4.1,<4.2
django420: Django>=4.2,<4.3
pytest>=6.2.5,<7.5
pytest-django
mysqlclient
psycopg2
skip_missing_interpreters=true
setenv =
mysql: DJANGO_DB_HOST = 127.0.0.1
mysql: DJANGO_DB_ENGINE = mysql
mysql: DJANGO_DB_USER = travis
mysql: DJANGO_DB_PASSWORD = travis
sqlite: DJANGO_DB_ENGINE = sqlite
postgres: DJANGO_DB_HOST = 127.0.0.1
postgres: DJANGO_DB_ENGINE = postgres
postgres: DJANGO_DB_USER = travis
postgres: DJANGO_DB_PASSWORD = travis
SECRET_KEY = placeholder # required env variable for django>=3.2
commands =
python setup.py test
[testenv:lint]
deps =
flake8
pytest
pylint
setuptools
commands =
flake8 tests src setup.py
pylint --rcfile=pylint.rc src/django_richenum
pylint --rcfile=pylint.rc tests
pylint --rcfile=pylint.rc setup.py