Skip to content

Commit ad7e7a5

Browse files
committed
Install python on $PATH in addition to in virtualenv
1 parent 0778ee8 commit ad7e7a5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,19 @@ jobs:
4545
repo-token: ${{ secrets.GITHUB_TOKEN }}
4646
- uses: astral-sh/setup-uv@v5
4747
- run: uv tool install poethepoet
48+
- run: uv --preview python install --default ${{ matrix.python }}
4849
- run: uv sync --all-extras --python ${{ matrix.python }}
4950
- name: Check python version
5051
shell: bash
5152
run: |
53+
actual=$(uv run python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
54+
if [[ "$actual" != "${{ 3.13 }}" ]]; then
55+
echo "Python version in use by uv ($actual) does not match intended version (${{ matrix.python }})"
56+
exit 1
57+
fi
5258
actual=$(python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
5359
if [[ "$actual" != "${{ 3.13 }}" ]]; then
54-
echo "Python version in use ($actual) does not match intended version (${{ matrix.python }})"
60+
echo "Python version on PATH ($actual) does not match intended version (${{ matrix.python }})"
5561
exit 1
5662
fi
5763
- run: poe bridge-lint

0 commit comments

Comments
 (0)