Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
Remove tox-gh-actions
Browse files Browse the repository at this point in the history
Use a couple of lines of shell instead. This removes the need to maintain the `[gh-actions]` section of tox.ini.
  • Loading branch information
adamchainz committed Sep 2, 2020
1 parent 276a64f commit b420b44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ jobs:
- name: Upgrade packaging tools
run: python -m pip install --upgrade pip setuptools virtualenv
- name: Install dependencies
run: python -m pip install --upgrade tox tox-gh-actions
run: python -m pip install --upgrade tox
- name: Run tox targets for ${{ matrix.python-version }}
run: python -m tox
run: |
ENV_PREFIX=$(tr -C -d "0-9" <<< "${{ matrix.python-version }}")
TOXENV=$(tox --listenvs | grep "^py$ENV_PREFIX" | tr '\n' ',') python -m tox
8 changes: 0 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@ envlist =
py{35,36,37,38,39}
py38-codestyle

[gh-actions]
python =
3.5: py35
3.6: py36
3.7: py37
3.8: py38, py38-codestyle
3.9: py39

[testenv]
commands = python -W error::DeprecationWarning -W error::PendingDeprecationWarning -m pytest {posargs}

Expand Down

0 comments on commit b420b44

Please sign in to comment.