-
Notifications
You must be signed in to change notification settings - Fork 46
/
tox.ini
84 lines (75 loc) · 1.84 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
# Tox (https://tox.wiki/) - run tests in isolation using virtualenv.
[tox]
envlist =
lint
format
# Python/Django combinations that are officially supported
py3{8,9,10,11,12}-django{42}
py3{10,11,12}-django{50,51}
behave-latest
package
docs
clean
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
DJANGO =
4.2: django42
5.0: django50
5.1: django51
[testenv]
description = Unit tests
deps =
coverage[toml]
django42: Django>=4.2,<5.0
django50: Django>=5.0,<5.1
django51: Django>=5.1,<5.2
latest: Django
latest: git+https://github.com/behave/behave.git#egg=behave
pytest
commands =
coverage run -m pytest {posargs}
coverage run -a tests/manage.py behave --tags=~@failing --tags=~@requires-live-http --simple {posargs}
coverage run -a tests/manage.py behave --tags=~@failing {posargs}
coverage xml
coverage report
[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