Skip to content

Commit

Permalink
Merge pull request #383 from biglocalnews/coverage-action
Browse files Browse the repository at this point in the history
Add coverage to testing
  • Loading branch information
palewire authored Jan 24, 2022
2 parents e605d7f + c8616c4 commit 1ee79f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

#
Expand Down

0 comments on commit 1ee79f2

Please sign in to comment.