π The fast, Pythonic way to build MCP servers and clients.
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)
Jeremiah Lowincf67152616b8
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.ymlindex a3fb99999..51293cce3 100644--- a/.github/workflows/run-tests.yml+++ b/.github/workflows/run-tests.yml@@ -48,7 +48,12 @@ jobs:run: uv sync --upgrade- name: Run tests (excluding integration and client_process)- run: uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process" --numprocesses auto --maxprocesses 4 --dist worksteal+ run: |+ if [ "${{ matrix.os }}" == "windows-latest" ]; then+ uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process"+ else+ uv run pytest --inline-snapshot=disable tests -m "not integration and not client_process" --numprocesses auto --maxprocesses 4 --dist worksteal+ fishell: bash- name: Run client process tests separately