-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
28 lines (27 loc) · 980 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
[tox]
isolated_build = True
toxworkdir={env:TOX_WORK_DIR:.tox}
envlist = py{310,311,312}-django{420}-oscar{32}
[testenv]
allowlist_externals =
bash
deps =
django420: django>=4.2,<4.3
oscar32: django-oscar>=3.2,<3.3
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,circuitbreaker --without-hashes -f requirements.txt | \
grep -v "^[dD]jango==" | \
grep -v "^django-oscar==" | \
pip install --no-deps -r /dev/stdin'
commands =
flake8 src sandbox
coverage erase
coverage run --source oscarcch -p {toxinidir}/sandbox/manage.py test oscarcch --noinput
- coverage combine
- coverage report -m