Skip to content

Commit 27888fa

Browse files
author
Lukas Slebodnik
committed
ci: normalize tox environment names for Python matrix
Tox v4.50.1+ introduced stricter environment name validation, preventing dotted versions (e.g., py3.12) from silently falling back to normalized definitions (e.g., py312). https://tox.wiki/en/latest/changelog.html#bug-fixes-4-50-1
1 parent 4c8f639 commit 27888fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/tox-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ jobs:
5757
- name: Install Tox
5858
run: pip install tox
5959
- name: Test on ${{ matrix.python-version }}
60-
run: tox -e "py${{ matrix.python-version }}"
60+
run: |
61+
PY_VER=${{ matrix.python-version }}
62+
tox -e "py${PY_VER//./}"
6163
coverage:
6264
runs-on: ubuntu-latest
6365
steps:

0 commit comments

Comments
 (0)