From d6a343e75045a181d00d6d494bccd483b9a409b4 Mon Sep 17 00:00:00 2001 From: Martine Lenders Date: Tue, 7 Jul 2020 09:20:23 +0200 Subject: [PATCH] github-actions: add codecov upload --- .github/workflows/tox.yml | 4 ++++ setup.cfg | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 31aefeb..7137026 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -30,3 +30,7 @@ jobs: pip install tox tox-gh-actions - name: Test with tox run: tox + - name: Upload to coverage + uses: codecov/codecov-action@v1.0.10 + with: + flags: ${{ matrix.python-version }} diff --git a/setup.cfg b/setup.cfg index 35ac90f..4fd6522 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,8 +1,10 @@ [tool:pytest] addopts = -v --junit-xml=test-report.xml --doctest-modules - --cov=riotctrl --cov-branch - --cov-report=term --cov-report=xml --cov-report=html + --cov=riotctrl + --cov-report=term + --cov-report=term-missing + --cov-report=xml testpaths = riotctrl [lint]