Skip to content

Commit f2fc01b

Browse files
authored
Use tox-py in CI (#1677)
1 parent 7e7b71a commit f2fc01b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v2
24+
2425
- name: Set up Python ${{ matrix.python-version }}
2526
uses: actions/setup-python@v2
2627
with:
2728
python-version: ${{ matrix.python-version }}
29+
2830
- name: Install dependencies
2931
run: |
30-
python -m pip install --upgrade pip wheel setuptools tox
32+
python -m pip install --upgrade pip wheel setuptools
33+
python -m pip install --upgrade tox tox-py
34+
3135
- name: Run tox targets for ${{ matrix.python-version }}
32-
run: |
33-
ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}")
34-
TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') python -m tox
36+
run: tox --py current
3537

3638
lint:
3739
name: Lint

0 commit comments

Comments
 (0)