-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtox.ini
More file actions
31 lines (28 loc) · 750 Bytes
/
Copy pathtox.ini
File metadata and controls
31 lines (28 loc) · 750 Bytes
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
[tox]
skipsdist = true
envlist = py310, py311, py312, py313, py314
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312
3.13: py313
3.14: py314
[testenv]
passenv = PYTHON_VERSION
allowlist_externals = uv
commands =
uv sync --python {envpython}
uv run python -m pytest tests --cov --cov-config=pyproject.toml --cov-report=xml
uv run ty check
[testenv:benchmark]
description = Run performance benchmarks with pytest-benchmark
passenv = PYTHON_VERSION
allowlist_externals = uv
commands =
uv sync --python {envpython}
uv run python -m pytest -c pytest.benchmark.ini \
--benchmark-only \
--benchmark-autosave \
--benchmark-json={toxinidir}/benchmark_results.json \
{posargs}