Use tox-py in CI (#7925)

This commit is contained in:
Adam Johnson 2021-04-16 17:59:27 +01:00 committed by GitHub
parent 67b5093ca5
commit 010c8d4f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,12 +37,10 @@ jobs:
run: python -m pip install --upgrade pip setuptools virtualenv wheel run: python -m pip install --upgrade pip setuptools virtualenv wheel
- name: Install dependencies - name: Install dependencies
run: python -m pip install --upgrade codecov tox run: python -m pip install --upgrade codecov tox tox-py
- name: Run tox targets for ${{ matrix.python-version }} - name: Run tox targets for ${{ matrix.python-version }}
run: | run: tox --py current
ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}")
TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') tox
- name: Run extra tox targets - name: Run extra tox targets
if: ${{ matrix.python-version == '3.9' }} if: ${{ matrix.python-version == '3.9' }}