Skip to content

Commit 18aa79b

Browse files
fix: run pytest directly from venv for lowest-direct
1 parent aac3353 commit 18aa79b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/shared.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,18 @@ jobs:
8383
uv run --no-project --no-sync python -c "from anyio._backends import _asyncio; print('Import successful')" || echo "Import failed"
8484
8585
- name: Run pytest
86-
run: uv run ${{ matrix.dep-resolution.name == 'lowest-direct' && '--no-project --no-sync' || '--frozen --no-sync' }} pytest
86+
shell: bash
87+
run: |
88+
if [ "${{ matrix.dep-resolution.name }}" == "lowest-direct" ]; then
89+
# Run pytest directly from venv to avoid any uv resolution issues
90+
if [ "$RUNNER_OS" == "Windows" ]; then
91+
.venv/Scripts/python -m pytest
92+
else
93+
.venv/bin/python -m pytest
94+
fi
95+
else
96+
uv run --frozen --no-sync pytest
97+
fi
8798
8899
readme-snippets:
89100
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)