Skip to content

Commit 91e16ff

Browse files
committed
Revert "Remove an ugly way to pass python version to tox"
This reverts commit 960ca66. The reason why it's needed is that in tox, we write conditions like [testenv:py38], but this does not apply to "tox -e py" as the environment name is different. I wonder what is the proper way to do this?
1 parent 5274995 commit 91e16ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
python -m pip install -r requirements-dev.txt
3131
- name: tox
3232
run: |
33-
tox -e py
33+
tox -e `python -c "import sys; print('py' + ''.join(sys.version.split('.')[:2]))"`

0 commit comments

Comments
 (0)