Skip to content

Commit

Permalink
gh-actions: do not use tox-gh-actions plugin (#9)
Browse files Browse the repository at this point in the history
* gh-actions: do not use tox-gh-actions plugin

* gh-actions/tox: also test python 3.9
  • Loading branch information
miri64 authored Jan 22, 2021
1 parent c7f892a commit 4aff90f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
max-parallel: 5
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v1
Expand All @@ -27,13 +27,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
python -m pip install tox
- name: Test with tox
run: tox
run: |
pyenv="py$(echo "${{ matrix.python-version }}" | tr -d '.')"
tox -e ${pyenv},test,flake8,lint
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
if: >-
matrix.python-version == 3.8 &&
matrix.python-version == 3.9 &&
github.event_name == 'push' &&
startsWith(github.event.ref, 'refs/tags')
with:
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ python =
3.5: py35,test
3.6: py36,test
3.7: py37,test
3.8: py38,test,lint,flake8
3.8: py38,test
3.9: py39,test,lint,flake8

[testenv]
basepython = python3
Expand Down

0 comments on commit 4aff90f

Please sign in to comment.