Skip to content

Commit

Permalink
do not use tox-gh-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Mar 5, 2021
1 parent 2472eae commit 816151e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 32 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions pytest-github-actions-annotate-failures
- name: Test with tox using minimal dependencies
run: tox
pip install tox pytest-github-actions-annotate-failures
- name: Set Python version
run: echo "PY_VERSION=$(echo ${version//./})" >> $GITHUB_ENV
env:
PLATFORM: ${{ matrix.platform }}
WHICH: mindeps
version: ${{ matrix.python-version }}
- name: Test with tox using minimal dependencies
run: tox -e py${{ env.PY_VERSION }}-mindeps
- name: Clean
run: tox
env:
PLATFORM: ${{ matrix.platform }}
WHICH: clean
run: tox -e clean
- name: Test with tox with all dependencies
run: tox
env:
PLATFORM: ${{ matrix.platform }}
WHICH: alldeps
run: tox -e py${{ env.PY_VERSION }}-alldeps
20 changes: 1 addition & 19 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@

[tox]
isolated_build = True
envlist = clean,py{36,37,38,39}-{mindeps,alldeps}-{linux,windows,macos},report

[gh-actions]
python =
3.6: py36-{mindeps,alldeps}
3.7: py37-{mindeps,alldeps}
3.8: py38-{mindeps,alldeps}
3.9: py39-{mindeps,alldeps}

[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
WHICH =
mindeps: mindeps
alldeps: alldeps
clean: clean
envlist = clean,py{36,37,38,39}-{mindeps,alldeps},report

[pytest]
testpaths = adaptive
Expand Down

0 comments on commit 816151e

Please sign in to comment.