-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
44 lines (38 loc) · 1.12 KB
/
tox.ini
File metadata and controls
44 lines (38 loc) · 1.12 KB
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
[tox]
envlist = py{311,312,313}-django{42,52}-djangocms{4,5}, py312-django52-djangocms5-coverage, pre-commit
[gh-actions]
python =
3.11: py311
3.12: py312
3.13: py313
[testenv:pre-commit]
deps =
pre-commit
commands = pre-commit run --all-files
[testenv:py312-django52-djangocms5-coverage]
allowlist_externals = echo
# for CI/github actions
passenv = DATABASE_URL
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
# for CI/github actions
passenv = DATABASE_URL
deps =
django42: Django>=4.2,<4.3
django52: Django>=5.2,<5.3
djangocms4: django-cms==4.1.9
djangocms5: django-cms==5.0.5
djangocms-versioning
# https://github.com/django-cms/django-cms/issues/8483
django-treebeard<5.0.3
coverage
psycopg
django-environ