-
Notifications
You must be signed in to change notification settings - Fork 41
/
tox.ini
45 lines (41 loc) · 974 Bytes
/
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
[tox]
minversion = 3.21.4
envlist =
py{39,310,311}-django42-wagtail{52,62}-factoryboy{32,33}
py{310,311,312}-django50-wagtail{52,62,63}-factoryboy{32,33}
py{310,311,312,313}-django51-wagtail63-factoryboy{32,33}
coverage-report
lint
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
commands = coverage run --parallel -m pytest {posargs}
extras = test
deps =
django42: django>=4.2,<5.0
django50: django>=5.0,<5.1
django51: django>=5.1,<5.2
wagtail52: wagtail>=5.2,<6.0
wagtail62: wagtail>=6.2,<6.3
wagtail63: wagtail>=6.3,<6.4
factoryboy32: factory-boy>=3.2,<3.3
factoryboy33: factory-boy>=3.3,<3.4
[testenv:coverage-report]
basepython = python3.11
deps = coverage
pip_pre = true
skip_install = true
commands =
coverage combine
coverage report
[testenv:lint]
basepython = python3.11
deps = flake8
commands =
ruff format --check .
ruff check .