forked from jazzband/django-sortedm2m
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
72 lines (66 loc) · 1.5 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
[tox]
envlist =
{py37,py38,py39,py310}-django32-{sqlite3,mysql,postgresql}
{py38,py39,py310}-django{42,main}-{sqlite3,mysql,postgresql}
quality
dist-validation
qunit
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
DJANGO =
3.2: django32
4.2: django42
main: djangomain
[testenv]
deps =
coverage
mysql: mysqlclient
postgresql: psycopg2-binary
django32: Django>=3.2,<3.3
django42: Django>=4.2,<4.3
djangomain: https://github.com/django/django/archive/main.tar.gz
ignore_outcome =
main: True
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/test_project
DJANGO_SETTINGS_MODULE = settings
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 =
coverage run {envbindir}/django-admin test --noinput {posargs:sortedm2m_tests}
coverage report
coverage xml
[testenv:quality]
deps =
Django>=3.2,<4.0
selenium<4.0
psycopg2-binary
-rrequirements.txt
allowlist_externals =
make
commands =
make quality
[testenv:dist-validation]
deps =
twine>=3.1.1
commands =
python setup.py sdist
twine check dist/*
[testenv:qunit]
deps = selenium<4.0
allowlist_externals =
timeout
commands = timeout 20 xvfb-run python test_project/qunit-runner.py