Disable pytest-xdist for CodSpeed benchmark runs (#2847)

CodSpeed instrumentation does not work with parallel test execution.
Pass -n 0 to disable xdist workers.
This commit is contained in:
Marcelo Trylesinski 2026-03-15 17:10:36 +01:00 committed by GitHub
parent d072de754f
commit 3f3ebee20f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,4 +31,4 @@ jobs:
uses: CodSpeedHQ/action@281164b0f014a4e7badd2c02cecad9b595b70537 # v4
with:
mode: instrumentation
run: uv run pytest tests/benchmarks/ --codspeed
run: uv run pytest tests/benchmarks/ --codspeed -n 0