From cf67152616b8b6a80a99d177b7bc8ffeb824b248 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Tue, 9 Dec 2025 09:50:20 -0500 Subject: [PATCH] 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) --- .github/workflows/run-tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 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 + fi shell: bash - name: Run client process tests separately