Skip to content

Commit

Permalink
Merge c7e8616 into 03564e7
Browse files Browse the repository at this point in the history
  • Loading branch information
brondsem committed Sep 9, 2021
2 parents 03564e7 + c7e8616 commit 3c2c99b
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -47,10 +47,32 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade tox
python -m pip install --upgrade tox coveralls
- name: Run tox targets for ${{ matrix.python-version }}
# could do this if we install tox-py, but it doesn't support 2.7 or 3.5
# run: tox --py current
# sed is used to remove the '.' so '3.7' becomes '37' for tox (and pypy3 doesn't become pypypy3)
run: tox -e py`echo ${{ matrix.python-version }} | sed s/\\\.// | sed s/pypy/py/`

# https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support
- name: Upload coverage data to coveralls.io
if: ${{ matrix.python-version != '2.7' }}
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true

coveralls:
name: Complete coveralls.io
needs: tests
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --service=github --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3c2c99b

Please sign in to comment.