-
Notifications
You must be signed in to change notification settings - Fork 66
/
tox.ini
52 lines (44 loc) · 990 Bytes
/
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
[tox]
envlist =
clean
py{3.10}-django{3.2}
py{3.12}-django{4.2}
py{3.12}-django{5.0}
py{3.12}-django{5.1}
report
[testenv]
skipsdist=True
usedevelop=True
passenv =
DATABASE_ENGINE
DATABASE_NAME
DATABASE_USER
DATABASE_PASSWORD
DATABASE_HOST
DATABASE_PORT
setenv =
PYTHONWARNINGS=default
TOXENV={envname}
basepython =
py3.10: python3.10
py3.12: python3.12
deps =
django3.2: -r tests/requirements/django-3.2.txt
django4.2: -r tests/requirements/django-4.2.txt
django5.0: -r tests/requirements/django-5.0.txt
django5.1: -r tests/requirements/django-5.1.txt
psycopg2-binary
mysqlclient
constrain_package_deps = True
use_frozen_constraints = True
commands = pytest --cov=tagulous --cov-append --cov-report=term {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage report
coverage html