-
Notifications
You must be signed in to change notification settings - Fork 72
/
tox.ini
31 lines (28 loc) · 660 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
[tox]
envlist = py{3.8,3.11}-django{42}
skipsdist = true
[pytest]
DJANGO_SETTINGS_MODULE = credentials.settings.test
testpaths = credentials/apps
[testenv]
deps =
django42: -r requirements/django.txt
-r {toxinidir}/requirements/test.txt
allowlist_externals:
make
commands =
{posargs:pytest}
[testenv:docs]
deps =
-r{toxinidir}/requirements/docs.txt
allowlist_externals =
make
env
setenv =
# -W will treat warnings as errors.
SPHINXOPTS = -W
commands =
# -e allows for overriding setting from the environment.
# -C changes the directory to `docs` before running the command.
make -e -C docs clean
make -e -C docs html