diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..432185bf --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +omit = + */template/* diff --git a/.github/workflows/testing_ci.yml b/.github/workflows/testing_ci.yml index 9b68871a..ad5d023a 100644 --- a/.github/workflows/testing_ci.yml +++ b/.github/workflows/testing_ci.yml @@ -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: |