Skip to content

Commit 15eb691

Browse files
committed
ci: add multhread pytest coverage collection
1 parent 87c4d10 commit 15eb691

File tree

3 files changed

+710
-683
lines changed

3 files changed

+710
-683
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ jobs:
9292
with:
9393
cacheFrom: ghcr.io/esynr3z/corsair-workspace
9494
push: never
95-
runCmd: uv run poe test
95+
runCmd: uv run poe test-cov

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ dev = [
7171
"mkdocs-exclude>=1.0.2",
7272
"mkdocs-git-revision-date-localized-plugin>=1.3.0",
7373
"mkdocs-material[imaging]>=9.5.44",
74+
"pytest-xdist>=3.6.1",
7475
]
7576

7677
[tool.ruff]
@@ -193,11 +194,11 @@ cmd = "pyright"
193194

194195
[tool.poe.tasks.test]
195196
help = "Run all tests via pytest"
196-
cmd = "pytest -v"
197+
cmd = "pytest -v -n auto"
197198

198199
[tool.poe.tasks.test-cov]
199200
help = "Run all tests via pytest with coverage collection"
200-
cmd = "pytest -v --cov=corsair --no-cov-on-fail --cov-report term-missing --cov-report html"
201+
cmd = "pytest -v -n auto --cov=corsair --no-cov-on-fail --cov-report term-missing --cov-report html"
201202

202203
[tool.poe.tasks.check-commits]
203204
help = "Do commit message checking for the current branch"

0 commit comments

Comments
 (0)