-
Notifications
You must be signed in to change notification settings - Fork 221
/
tox.ini
39 lines (35 loc) · 1.17 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
[tox]
distshare = {homedir}/.tox/distshare
envlist = py{3.9,3.10,3.11}-pytest{7.0,7.1,7.2,7.3,7.4,8.0,8.1,8.2,8.3,latest}-gherkin_official{29,30,latest}-coverage
py{3.12,3.13}-pytest{7.3,7.4,8.0,8.1,8.2,8.3,latest}-gherkin_official{29,30,latest}-coverage
py3.12-pytestlatest-xdist-coverage
mypy
[testenv]
parallel_show_output = true
setenv =
coverage: _PYTEST_CMD=coverage run -m pytest
xdist: _PYTEST_MORE_ARGS=-n3 -rfsxX
deps =
gherkin_officiallatest: gherkin-official
gherkin_official30: gherkin-official~=30.0.0
gherkin_official29: gherkin-official~=29.0.0
pytestlatest: pytest
pytest8.1: pytest~=8.1.0
pytest8.0: pytest~=8.0.0
pytest7.4: pytest~=7.4.0
pytest7.3: pytest~=7.3.0
pytest7.2: pytest~=7.2.0
pytest7.1: pytest~=7.1.0
pytest7.0: pytest~=7.0.0
coverage: coverage[toml]
xdist: pytest-xdist
commands = {env:_PYTEST_CMD:pytest} {env:_PYTEST_MORE_ARGS:} {posargs:-vvl}
[testenv:mypy]
deps = poetry
allowlist_externals = sh
commands_pre =
sh -c "\
poetry export --only=dev --format requirements.txt > requirements.txt && \
pip install -r requirements.txt && \
:"
commands = mypy