-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
tox.ini
58 lines (54 loc) · 1.3 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[tox]
envlist =
# list of supported Django/Python versions:
# https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
py{36,37,38,39,310}-dj{22,31,32}
py{38,39,310}-dj{40,41}
py{38,39,310,311}-dj42
py{310,311,312}-djmain
py38-{lint,docs}
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = tests.settings
PYTHONPATH = .
commands =
{envbindir}/coverage run {envbindir}/django-admin test robots -v2
{envbindir}/coverage report -m
{envbindir}/coverage xml
deps =
-r{toxinidir}/tests/requirements.txt
dj22: django>=2.2,<2.3
dj31: django>=3.1,<3.2
dj32: django>=3.2,<3.3
dj40: django>=4.0,<4.1
dj41: django>=4.1,<4.2
dj42: django>=4.2,<4.3
djmain: https://github.com/django/django/archive/main.tar.gz
[testenv:py38-lint]
basepython = python3.8
skip_install = true
deps =
isort
flake8
flake8-black
twine
commands =
isort -c -diff src tests
flake8 src tests
python setup.py sdist
twine check dist/*
[testenv:py38-docs]
basepython = python3.8
deps =
Sphinx
sphinx_rtd_theme
commands = sphinx-build -b html -d {envtmpdir}/doctrees docs {envtmpdir}/html