-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
34 lines (33 loc) · 1.2 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
[tox]
isolated_build = True
envlist =
py{311,312,313}-django{420}-wagtail{520,620,630}
py{311,312,313}-django{500}-wagtail{520,620,630}
py{311,312,313}-django{510}-wagtail{620,630}
[testenv]
allowlist_externals =
bash
deps =
django420: django>=4.2,<4.3
django500: django>=5.0,<5.1
django510: django>=5.1,<5.2
wagtail520: wagtail>=5.2,<5.3
wagtail620: wagtail>=6.2,<6.3
wagtail630: wagtail>=6.3,<6.4
setenv =
PYTHONWARNINGS = d
# Install the dependencies managed by Poetry, except for Django (which was
# already installed by tox). This prevents Poetry from overwriting the version
# of Django we're trying to test with the version in the lock file.
# Adapted from here: https://github.com/python-poetry/poetry/discussions/4307
commands_pre =
bash -c 'poetry export --with dev --without-hashes -f requirements.txt | \
grep -v "^[dD]jango==" | \
grep -v "^wagtail==" | \
pip install --no-deps -r /dev/stdin'
commands =
flake8 {toxinidir}/src {toxinidir}/sandbox
mypy {toxinidir}/src/wagtail_links
coverage erase
coverage run --branch --source wagtail_links {toxinidir}/sandbox/manage.py test --noinput wagtail_links
- coverage report -m