Skip to content

Commit f612227

Browse files
committed
Check that intended python version is being used
1 parent bf747f1 commit f612227

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ jobs:
4949
- uses: astral-sh/setup-uv@v5
5050
- run: uv tool install poethepoet
5151
- run: uv sync --all-extras
52+
- name: Check python version
53+
shell: bash
54+
run: |
55+
actual=$(python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))")
56+
if [[ "$actual" != "${{ matrix.python }}" ]]; then
57+
echo "Python version in use ($actual) does not match intended version (${{ matrix.python }})"
58+
exit 1
59+
fi
5260
- run: poe bridge-lint
5361
if: ${{ matrix.clippyLinter }}
5462
- run: poe lint

0 commit comments

Comments
 (0)