Skip to content

Commit bececef

Browse files
authored
Parallel tests (#28)
1 parent abf3a41 commit bececef

File tree

3 files changed

+61
-3
lines changed

3 files changed

+61
-3
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ dev = [
4545
"pytest-asyncio >= 1.2.0, < 2.0",
4646
"pytest-cov >= 7.0, < 8.0",
4747
"pytest-httpx >= 0.36, < 1.0",
48-
"pytest-timeout >= 2.4, < 3.0",
4948
"pytest-md >= 0.2, < 1.0",
49+
"pytest-timeout >= 2.4, < 3.0",
50+
"pytest-xdist[psutil] >= 3.8, < 4.0",
5051
"ruff >= 0.14, < 1.0",
5152
"textual-dev >= 1.7, < 2.0",
5253
]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ commands =
3838
# Analyzing typing with pyright
3939
pyright --pythonversion {env:PYRIGHT_PYTHON_VERSION}
4040
# Run pytest
41-
pytest
41+
pytest -n auto
4242

4343
# Quick check environment - runs checks only once on your current Python version
4444
[testenv:check]
@@ -50,7 +50,7 @@ commands =
5050
black --check .
5151
pylint -j 0 src tests
5252
pyright
53-
pytest
53+
pytest -n auto
5454

5555
# Fast test environment - only runs tests, no linting
5656
[testenv:test]

uv.lock

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)