Skip to content

Commit 0cab71b

Browse files
fix: disable pytest-xdist for lowest-direct tests
1 parent 3ca087e commit 0cab71b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/shared.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,15 @@ jobs:
103103
find .venv -name "__pycache__" -type d -delete 2>/dev/null || true
104104
105105
# Run pytest directly from venv to avoid any uv resolution issues
106+
# Disable xdist for lowest-direct to avoid subprocess issues
106107
# Isolate the Python environment completely
107108
export PYTHONNOUSERSITE=1
108109
export PYTHONPATH=""
109110
export PYTHONDONTWRITEBYTECODE=1
110111
if [ "$RUNNER_OS" == "Windows" ]; then
111-
.venv/Scripts/python -m pytest -v
112+
.venv/Scripts/python -m pytest -n 0
112113
else
113-
.venv/bin/python -m pytest -v
114+
.venv/bin/python -m pytest -n 0
114115
fi
115116
else
116117
uv run --frozen --no-sync pytest

0 commit comments

Comments
 (0)