diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 61480ec..41d2868 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -36,5 +36,7 @@ jobs: python -m pip install tox - name: Run Linter run: tox -e lint -- virtual_resources - - name: Run Tests + - name: Run Tests with coverage run: tox -e pytest + - name: Upload Coverage to Codecov + uses: codecov/codecov-action@v2 diff --git a/tox.ini b/tox.ini index 1e777c3..337a987 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,7 @@ envlist = lint,pytest deps = -rrequirements-dev.txt commands = - pytest {posargs} + pytest --cov=virtual_resources {posargs} [testenv:lint] skip_install = true