diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6478e0c..d2ca5b0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,3 +31,10 @@ jobs: - name: Test with tox run: | tox + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: unittests + name: Python ${{ matrix.python }} on ${{ matrix.os }} + fail_ci_if_error: true diff --git a/tox.ini b/tox.ini index 716df64..027a718 100644 --- a/tox.ini +++ b/tox.ini @@ -16,7 +16,7 @@ passenv = INCLUDE LIB LIBPATH Platform VCTools* VSCMD_* WindowsSDK* commands_pre = poetry install commands = - poetry run pytest --cov-report=xml -sv tests + poetry run pytest --cov-report=xml --cov=src -sv tests [testenv:lint] commands =