From 5f7949027f8170d9981d70905e1d2bfe4fb6c59e Mon Sep 17 00:00:00 2001 From: "Kacper Kowalik (Xarthisius)" Date: Fri, 27 Oct 2023 09:19:23 -0500 Subject: [PATCH] ENH: add coverage --- .github/workflows/build-test.yaml | 4 +++- tox.ini | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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