Skip to content

Commit fa6d548

Browse files
committed
force python version matrix on github actions
1 parent 0d2a595 commit fa6d548

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci-tests.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
python-version: ${{ matrix.python-version }}
4848
cache-dependency-path: "pyproject.toml"
4949

50+
- name: Select matrix Python for Poetry
51+
run: |
52+
poetry env remove --all
53+
poetry env use python
54+
poetry run python -c "import sys; expected=tuple(map(int, '${{ matrix.python-version }}'.split('.'))); actual=sys.version_info[:2]; print('Poetry Python:', sys.version); raise SystemExit(0 if actual == expected else 'Expected Python %s, got %s' % (expected, actual))"
55+
5056
- name: Install invoke
5157
run: pipx install invoke
5258

0 commit comments

Comments
 (0)