-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathtox.ini
More file actions
94 lines (76 loc) · 2.38 KB
/
Copy pathtox.ini
File metadata and controls
94 lines (76 loc) · 2.38 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
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
85
86
87
88
89
90
91
92
93
94
[tox]
min_version = 4.30
env_list =
python{3.11}-django5.2-wagtail7.0
python{3.12,3.13}-django5.2-wagtail7.4
python{3.14}-django{6.0}-wagtail{7.4}
python{3.14}-django{6.0}-wagtail{7.4}-use_extends
python{3.14}-django{6.1}-wagtail{8.0}
python{3.14}-django{6.1}-wagtail{8.0}-{use_extends,custom_basepage,disable_api_v3}
[gh-actions]
python =
3.11: python3.11
3.12: python3.12
3.13: python3.13
3.14: python3.14
[testenv]
package = wheel
wheel_build_env = .pkg
use_frozen_constraints = true
constrain_package_deps = true
pass_env =
FORCE_COLOR
NO_COLOR
set_env =
PYTHONPATH = {toxinidir}
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONDEVMODE = 1
python3.12: COVERAGE_CORE=sysmon
python3.13: COVERAGE_CORE=sysmon
python3.14: COVERAGE_CORE=sysmon
use_extends: USE_EXTENDS=yes
disable_api_v3: ENABLE_API_V3=no
extras = testing
deps =
django5.2: Django>=5.2,<5.3
django6.0: Django>=6.0,<6.1
django6.1: Django>=6.1,<6.2
wagtail7.0: wagtail>=7.0,<7.1
wagtail7.4: wagtail>=7.4,<7.5
wagtail8.0: wagtail>=8.0,<8.1
commands_pre =
python -I {toxinidir}/tests/manage.py migrate
commands =
python -Im coverage run {toxinidir}/tests/manage.py test --deprecation all {posargs: -v 2}
[testenv:custom_basepage]
set_env =
USES_CUSTOM_PAGE_MODEL=yes
DATABASE_NAME=db-custombasepage.sqlite3
[testenv:coverage-report]
base_python = python3.14
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.14
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.14
deps =
wagtail>=7.0,<7.1
commands_pre =
python {toxinidir}/tests/manage.py makemigrations
python {toxinidir}/tests/manage.py migrate
python {toxinidir}/tests/manage.py shell -c "from django.contrib.auth.models import User;(not User.objects.filter(username='admin').exists()) and User.objects.create_superuser('admin', 'super@example.com', 'changeme')"
python {toxinidir}/tests/manage.py createcachetable
commands =
{posargs:python {toxinidir}/tests/manage.py runserver 127.0.0.1:8020}
set_env =
INTERACTIVE = 1