-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
tox.ini
52 lines (46 loc) · 1.23 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
[tox]
envlist =
py310-{dj40,dj41,dj42,dj50},
py311-{dj41,dj42,dj50},
py312-{dj42,dj50},
py313-{dj51},
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
passenv = CI,GITHUB_WORKFLOW
deps =
dj40: Django == 4.0.*
dj41: Django == 4.1.*
dj42: Django == 4.2.*
dj50: Django == 5.0.*
dj51: Django == 5.1.*
-r requirements.txt
-r requirements-test.txt
commands =
pre-commit run -a
coverage run --append --source=maintenance_mode runtests.py
coverage report --show-missing --ignore-errors
# [testenv:migrations]
# setenv =
# DJANGO_SETTINGS_MODULE=tests.settings
# DATABASE_ENGINE=sqlite
# deps =
# -r requirements.txt
# commands =
# python -m django makemigrations --check
# [testenv:translations]
# setenv =
# DJANGO_SETTINGS_MODULE=tests.settings
# DATABASE_ENGINE=sqlite
# deps =
# -r requirements.txt
# allowlist_externals = git
# commands =
# python -m django makemessages --ignore ".tox" --ignore "venv" --all --add-location "file" --extension "html,py"
# python -m django compilemessages --ignore ".tox" --ignore "venv"
# git diff maintenance_mode/locale/
# git diff-index --quiet HEAD maintenance_mode/locale/