Skip to content

Commit

Permalink
Adds coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
tingiskhan committed Feb 16, 2024
1 parent 0f2cf03 commit d4d0f3f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
shell: bash -l {0}
run: |
make lint
- name: Test
- name: Test and coverage
shell: bash -l {0}
run: |
make test
make coverage
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ lint:
ruff check ./numpyro_sts

test:
pytest ./tests
coverage run -m pytest ./tests

coverage: test
coverage report --fail-under=100

# TODO: add coverage
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dev = [
"black",
"isort",
"ruff",
"coverage",
]

[project.urls]
Expand Down

0 comments on commit d4d0f3f

Please sign in to comment.