From a27da4d1ae95deac2302c0d455836f43e772b62d Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Tue, 20 Sep 2022 21:33:19 -0500 Subject: [PATCH] Restrict coverage to semanticscholar/ directory --- .github/workflows/coverage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 8c0fbf6..d416252 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -24,7 +24,7 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Gather coverage data run: | - python -m coverage run -m unittest discover + python -m coverage run --source=semanticscholar/ -m unittest discover - name: XML reporting run: | python -m coverage xml