40 lines
1.2 KiB
INI
40 lines
1.2 KiB
INI
[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
|