Skip to content

Commit cb339f2

Browse files
committed
Add pytest-xdist for parallel test execution
1 parent 266799f commit cb339f2

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dev = [
4848
"mypy>=1.19.1",
4949
"ty>=0.0.20",
5050
"pytest>=9.0.2",
51+
"pytest-xdist>=3.5.0",
5152
"pre-commit>=4.5.1",
5253
"tox>=4.47.1",
5354
"tox-uv>=1.33.1",

pytest.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ addopts = [
66
"-ra",
77
# Quieter output
88
"-q",
9+
# Run tests in parallel across available CPUs
10+
"-n=auto",
911
]
1012
markers = [
1113
"typecheck: type-checker compatibility tests (pyright, mypy, ty)",

uv.lock

Lines changed: 24 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)