diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f27c2f80..ec962229 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -30,7 +30,7 @@ jobs: run: make dev - name: Run the tests and produce the .coverage file - run: make test-cov + run: make test-all-cov - name: Coverage comment id: coverage_comment diff --git a/Makefile b/Makefile index 4138267c..b54e89ef 100644 --- a/Makefile +++ b/Makefile @@ -110,8 +110,14 @@ test test-all: $(pytest) $($@) test-cov: + $(pytest) --cov --cov-append --cov-report=term --cov-report=html $(test) + +test-all-cov: $(pytest) --cov --cov-report=term --cov-report=html $(test-all) +test-%-cov: + $(pytest) --cov --cov-append --cov-report=term --cov-report=html $(test-$*) + # Building the Docs