Skip to content

Commit

Permalink
build version of python for tox env via shell in CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
Cielquan committed Sep 9, 2023
1 parent 8e09408 commit f185eaa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,7 @@ jobs:
run: pipx install tox

- name: Run tests via tox
run: tox -m py${{ matrix.python-version }}
run: |
major=$(python -c 'import sys;print(sys.version_info[0])')
minor=$(python -c 'import sys;print(sys.version_info[1])')
tox -m py${major}.${minor}

0 comments on commit f185eaa

Please sign in to comment.