Skip to content

Commit ecb6f9a

Browse files
committed
added test coverage checks
1 parent f1a0dae commit ecb6f9a

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.coveragerc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[run]
2+
branch = True
3+
omit =
4+
*/__init__.py
5+
tests/*
6+
7+
[report]
8+
show_missing = True
9+
fail_under = 94
10+
11+
[html]
12+
directory = docs/coverage

.github/workflows/run_code_checks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,7 @@ jobs:
3535
run: poetry run pre-commit run --all-files
3636

3737
- name: Run unit tests
38-
run: poetry run pytest tests/
38+
run: poetry run coverage run pytest tests/
39+
40+
- name: Check unit test coverage
41+
run: poetry run coverage report

0 commit comments

Comments
 (0)