-
Notifications
You must be signed in to change notification settings - Fork 47
/
tox.ini
88 lines (79 loc) · 1.94 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Tox (https://tox.wiki/) - run tests in isolation using virtualenv.
# Also contains config settings for tools that don't look into pyproject.toml.
[tox]
envlist =
lint
format
# Python/Django combinations that are officially supported
py3{7,8,9,10}-django32
py3{8,9,10,11,12}-django42
py3{10,11,12}-django50
behave-latest
package
docs
clean
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
DJANGO =
3.2: django32
4.2: django42
5.0: django50
[testenv]
description = Unit tests
deps =
coverage[toml]
django32: Django>=3.2,<4.0
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
latest: Django
latest: git+https://github.com/behave/behave.git#egg=behave
pytest
commands =
coverage run -m pytest {posargs}
coverage xml
coverage report
python tests/manage.py behave --tags=~@failing --tags=~@requires-live-http --simple {posargs}
python tests/manage.py behave --tags=~@failing {posargs}
[testenv:clean]
description = Remove Python bytecode and other debris
skip_install = true
deps = pyclean
commands =
pyclean {posargs:. --debris --erase TESTS-*.xml *-report.xml --yes --verbose}
[testenv:docs]
description = Build package documentation (HTML)
skip_install = true
deps = sphinx
changedir = docs
commands = make html
allowlist_externals = make
[testenv:format]
description = Ensure consistent code style (Ruff)
skip_install = true
deps = ruff
commands = ruff format {posargs:--check --diff .}
[testenv:lint]
description = Lightening-fast linting (Ruff)
skip_install = true
deps = ruff
commands = ruff check {posargs:.}
[testenv:package]
description = Build package and check metadata (or upload package)
skip_install = true
deps =
build
twine
commands =
python -m build
twine {posargs:check --strict} dist/*
passenv =
TWINE_USERNAME
TWINE_PASSWORD
TWINE_REPOSITORY_URL