-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
50 lines (42 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
41
42
43
44
45
46
47
48
49
50
[tox]
envlist = py{38,39,310,311,312}-django{32,42}, py39-django42-coverage, pre-commit
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv:pre-commit]
deps =
pre-commit
commands = pre-commit run --all-files
[testenv:py39-django42-coverage]
allowlist_externals = echo
commands =
# https://github.com/nedbat/coveragepy/issues/1272
pip install coverage<6
coverage erase
coverage run ./manage.py test
coverage report --include='postgres_searchindex*' --omit='*/tests/*' --omit='*/migrations/*'
coverage html --include='postgres_searchindex*' --omit='*/tests/*' --omit='*/migrations/*'
echo "opener htmlcov/index.html"
[testenv]
commands = python manage.py test
setenv =
DJANGO_SETTINGS_MODULE=postgres_searchindex.tests.settings
PYTHONPATH={toxinidir}
deps =
django32: Django>=3.1,<3.3
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django-cms==3.11.4
coverage
[testenv:py38-django50]
allowlist_externals = echo
deps =
commands= echo "no django 5.0 on python 3.8!"
[testenv:py39-django50]
allowlist_externals = echo
deps =
commands= echo "no django 5.0 on python 3.9!"