forked from torchbox/wagtailmedia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
84 lines (68 loc) · 1.86 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
73
74
75
76
77
78
79
80
81
82
83
84
[tox]
min_version = 4.11
env_list =
py{38,39,310,311}-dj42-wagtail{52,60,61}
py{310,311,312}-dj50-wagtail{52,60,61}
base_python =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
package = wheel
wheel_build_env = .pkg
use_frozen_constraints = true
constrain_package_deps = true
pass_env =
FORCE_COLOR
NO_COLOR
setenv =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONDEVMODE = 1
deps =
coverage>=7.0,<8.0
dj42: Django>=4.2,<5.0
dj50: Django>=5.0,<5.1
wagtail52: wagtail>=5.2,<6.0
wagtail60: wagtail>=6.0,<6.1
wagtail61: wagtail>=6.1,<6.2
install_command = python -Im pip install --upgrade {opts} {packages}
commands =
python -Im coverage run runtests.py {posargs: -v 2}
[testenv:coverage-report]
base_python = python3.11
package = skip
deps =
coverage>=7.0,<8.0
commands =
python -Im coverage combine
python -Im coverage report -m
[testenv:wagtailmain]
description = Test with latest Wagtail main branch
base_python = python3.12
deps =
wagtailmain: git+https://github.com/wagtail/wagtail.git@main#egg=Wagtail
[testenv:interactive]
package = editable
description = An interactive environment for local testing purposes
base_python = python3.11
deps =
wagtail>=5.2
commands_pre =
python {toxinidir}/manage.py makemigrations
python {toxinidir}/manage.py migrate
python {toxinidir}/manage.py shell -c "from django.contrib.auth.models import User;(not User.objects.filter(username='admin').exists()) and User.objects.create_superuser('admin', '[email protected]', 'changeme')"
python {toxinidir}/manage.py createcachetable
commands =
{posargs:python manage.py runserver 0.0.0.0:8020}
set_env =
INTERACTIVE = 1