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:
45
45
repo-token : ${{ secrets.GITHUB_TOKEN }}
46
46
- uses : astral-sh/setup-uv@v5
47
47
- run : uv tool install poethepoet
48
+ - run : uv --preview python install --default ${{ matrix.python }}
48
49
- run : uv sync --all-extras --python ${{ matrix.python }}
49
50
- name : Check python version
50
51
shell : bash
51
52
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
52
58
actual=$(python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
53
59
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 }})"
55
61
exit 1
56
62
fi
57
63
- run : poe bridge-lint
You can’t perform that action at this time.
0 commit comments