test(ci): isolate Windows console tests

This commit is contained in:
Xubin Ren
2026-08-17 20:56:10 +08:00
parent 314f5dcf0b
commit e63ef5d211
+10 -5
View File
@@ -96,11 +96,9 @@ jobs:
os: windows-latest os: windows-latest
python-version: "3.14" python-version: "3.14"
coverage: false coverage: false
# Real PowerShell/process-tree tests share the hosted runner's # Real PowerShell/process-tree tests are run serially below. Keep
# Windows console. Separate xdist workers can therefore deliver a # them out of xdist so workers never share a Windows console.
# control event across worker boundaries; run this compatibility pytest_args: "-n 2 --dist loadfile --ignore=tests/tools/test_exec_platform.py"
# matrix serially, as nanobot itself does in one client process.
pytest_args: "--full-trace"
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -150,6 +148,13 @@ jobs:
${{ matrix.pytest_args }} ${{ matrix.pytest_args }}
--durations=25 --durations-min=1.0 --durations=25 --durations-min=1.0
- name: Run Windows process compatibility tests
if: runner.os == 'Windows'
run: >-
uv run --no-sync python -m pytest
tests/tools/test_exec_platform.py
--durations=25 --durations-min=1.0
webui: webui:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 15 timeout-minutes: 15