Skip to content

Commit

Permalink
Add .coveragerc to omit files in templates (#111)
Browse files Browse the repository at this point in the history
* feat: omit templates while calculating code coverage;

* feat: update `.coveragerc`;

* feat: update `.coveragerc`;
  • Loading branch information
WenjieDu authored May 16, 2023
1 parent 0028333 commit fe4efe0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
*/template/*
16 changes: 8 additions & 8 deletions .github/workflows/testing_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
run: |
# run tests separately here due to Segmentation Fault in test_clustering when run all in
# one command with `pytest` on MacOS. Bugs not caught, so this is a trade-off to avoid SF.
python -m pytest -rA tests/test_classification.py -n auto --cov=pypots --dist=loadgroup
python -m pytest -rA tests/test_imputation.py -n auto --cov=pypots --cov-append --dist=loadgroup
python -m pytest -rA tests/test_clustering.py -n auto --cov=pypots --cov-append --dist=loadgroup
python -m pytest -rA tests/test_forecasting.py -n auto --cov=pypots --cov-append --dist=loadgroup
python -m pytest -rA tests/test_optim.py -n auto --cov=pypots --cov-append --dist=loadgroup
python -m pytest -rA tests/test_data.py -n auto --cov=pypots --cov-append --dist=loadgroup
python -m pytest -rA tests/test_utils.py -n auto --cov=pypots --cov-append --dist=loadgroup
python -m pytest -rA tests/test_cli.py -n auto --cov=pypots --cov-append --dist=loadgroup
python -m pytest -rA tests/test_classification.py -n auto --cov=pypots --dist=loadgroup --cov-config=.coveragerc
python -m pytest -rA tests/test_imputation.py -n auto --cov=pypots --cov-append --dist=loadgroup --cov-config=.coveragerc
python -m pytest -rA tests/test_clustering.py -n auto --cov=pypots --cov-append --dist=loadgroup --cov-config=.coveragerc
python -m pytest -rA tests/test_forecasting.py -n auto --cov=pypots --cov-append --dist=loadgroup --cov-config=.coveragerc
python -m pytest -rA tests/test_optim.py -n auto --cov=pypots --cov-append --dist=loadgroup --cov-config=.coveragerc
python -m pytest -rA tests/test_data.py -n auto --cov=pypots --cov-append --dist=loadgroup --cov-config=.coveragerc
python -m pytest -rA tests/test_utils.py -n auto --cov=pypots --cov-append --dist=loadgroup --cov-config=.coveragerc
python -m pytest -rA tests/test_cli.py -n auto --cov=pypots --cov-append --dist=loadgroup --cov-config=.coveragerc
- name: Generate the LCOV report
run: |
Expand Down

0 comments on commit fe4efe0

Please sign in to comment.