-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
25 lines (24 loc) · 874 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
[tox]
isolated_build = True
toxworkdir={env:TOX_WORK_DIR:.tox}
envlist = py{310,311,312}-django{420,500}
[testenv]
passenv = *
allowlist_externals =
bash
deps =
django420: django>=4.2,<4.3
django500: django>=5.0,<5.1
# 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==" | \
pip install --no-deps -r /dev/stdin'
commands =
flake8 {toxinidir}/thelabdb/
coverage run manage.py test --noinput {env:TEST_PKGS:thelabdb.tests.testsuniv}
coverage report -i -m
coverage xml