-
Notifications
You must be signed in to change notification settings - Fork 63
/
tox.ini
40 lines (36 loc) · 1.17 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
[tox]
isolated_build = true
envlist = py37-django32-{mysql,postgres,sqlite}, {py38,py39,py310}-django{32,40,41,master}-{mysql,postgres,sqlite}, py311-django41-{mysql,postgres,sqlite}
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311, lint
[testenv]
setenv =
mysql: DATABASE_URL = mysql://[email protected]/mysql
postgres: DATABASE_URL = postgres://postgres:postgres@localhost/postgres
sqlite: DATABASE_URL = sqlite://:memory:
commands =
coverage run -m django test --noinput --settings=test_settings.settings {posargs:custom_user}
coverage run -m django test --noinput --settings=test_settings.settings_subclass {posargs:custom_user}
coverage combine
coverage report
install_dev_deps = true
deps =
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
djangomaster: https://github.com/django/django/archive/master.tar.gz#egg=Django
extras =
mysql: mysql
postgres: postgres
[testenv:{py38,py39,py310,py311}-djangomaster-{mysql,postgres,sqlite}]
ignore_outcome = true
[testenv:lint]
basepython = python3.11
skip_install = true
allowlist_externals = make
commands = make lint