Skip to content

Commit

Permalink
github-actions: add codecov upload
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jan 22, 2021
1 parent 9148884 commit 147e9a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
max-parallel: 4
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
tox-testenv: ["test", "test-rapidjson"]
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1
Expand All @@ -28,11 +27,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
pip install tox tox-gh-actions
- name: Test with tox
run: |
pyenv="py$(echo "${{ matrix.python-version }}" | tr -d '.')"
tox -e ${pyenv},${{ matrix.tox-testenv }},flake8,lint
- name: Upload to coverage
uses: codecov/codecov-action@v1.2.1
with:
flags: ${{ matrix.python-version }}
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
if: >-
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
addopts = -v --junit-xml=test-report.xml
--doctest-modules
--cov=riotctrl --cov-branch
--cov-report=term --cov-report=xml --cov-report=html
--cov-report=term --cov-report=term-missing --cov-report=xml
testpaths = riotctrl
markers =
rapidjson
Expand Down

0 comments on commit 147e9a4

Please sign in to comment.