File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments