From c8616c417ab6c09b4197d325f9d388c74d3ddf0b Mon Sep 17 00:00:00 2001 From: palewire Date: Mon, 24 Jan 2022 04:13:44 -0800 Subject: [PATCH] Add coverage to testing. Fixes #348 --- .github/workflows/continuous-deployment.yml | 6 +++++- Makefile | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index c841501f..7a51a792 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -85,9 +85,13 @@ jobs: python-version: ${{ matrix.python }} - id: run - name: Run + name: Run tests run: make test + - id: coverage + name: Coverage report + run: make coverage + test-build: name: Build Python package runs-on: ubuntu-latest diff --git a/Makefile b/Makefile index 56ad9c34..a7d203b0 100644 --- a/Makefile +++ b/Makefile @@ -92,11 +92,10 @@ mypy: ## run mypy type checks test: ## run all tests $(call banner, 🤖 Running tests 🤖) - @$(PYTHON) setup.py -q test + @$(PIPENV) coverage run setup.py -q test coverage: ## check code coverage - @$(PIPENV) coverage run --source warn -m pytest @$(PIPENV) coverage report -m #