Skip to content

Commit cf67152

Browse files
authored
Update test workflow to conditionally run pytest on Windows. Added logic to handle test execution differently for Windows and other OS environments, ensuring compatibility and performance optimization. (#2579)
1 parent 413a5a1 commit cf67152

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/run-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ jobs:
4848
run: uv sync --upgrade
4949

5050
- name: Run tests (excluding integration and client_process)
51-
run: uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process" --numprocesses auto --maxprocesses 4 --dist worksteal
51+
run: |
52+
if [ "${{ matrix.os }}" == "windows-latest" ]; then
53+
uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process"
54+
else
55+
uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process" --numprocesses auto --maxprocesses 4 --dist worksteal
56+
fi
5257
shell: bash
5358

5459
- name: Run client process tests separately

0 commit comments

Comments
 (0)