-
Notifications
You must be signed in to change notification settings - Fork 31
/
tox.ini
47 lines (42 loc) · 881 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
46
47
[tox]
envlist =
lint-py311,
readme-py311,
docs-py311,
py39-django{32,41,42},
py310-django{32,41,42},
py311-django{41,42},
py312-django{41,42},
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311, lint, restlint
3.12: py312
[testenv]
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = {toxinidir}
deps =
-rtests/requirements.txt
django32: Django>=3.2,<4.0
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
commands =
pytest {posargs:tests}
[testenv:docs-py311]
deps =
sphinx
commands =
docs: sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html
[testenv:readme-py311]
deps =
twine
readme_renderer[md]
commands =
python setup.py sdist
twine check dist/*
[testenv:lint-py311]
extras = dev
commands=therapist run --use-tracked-files