Skip to content

Commit 1296640

Browse files
CodeAbraclaudexnllllh
committed
ci: parallelize the test gate with pytest-xdist and a per-test timeout [no-user-impact]
Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: XNLLLLH <XNLLLLH@users.noreply.github.com>
1 parent 186dd08 commit 1296640

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
python -m pip install --upgrade pip
3030
pip install -e ".[dev]"
3131
- name: Correctness gate
32-
run: pytest -m "not perf and not slow and not live"
32+
run: pytest -n auto --dist loadscope --timeout=600 -m "not perf and not slow and not live"
3333
- name: Build wheel
3434
run: pip wheel . --no-deps -w dist
3535

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ dependencies = [
4646
dev = [
4747
"pytest>=8.0",
4848
"pytest-cov>=5.0",
49+
"pytest-xdist>=3.5",
50+
"pytest-timeout>=2.3",
4951
"reportlab>=4.0", # builds a 1-page PDF fixture on demand inside the ingestion test suite; never imported at runtime by the production package.
5052
"ruff>=0.5.0",
5153
# networkx is the σ-baseline oracle in tests/fixtures/sigma_baseline.json

0 commit comments

Comments
 (0)