Skip to content

Commit c59136b

Browse files
committed
ci(cli): Run coverage via shell script and enable coredumpy
1 parent 9021967 commit c59136b

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/test_and_cov.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,9 @@ jobs:
4747
mkdir -p "$HF_HOME"
4848
[ -z "$(ls "$HF_HOME")" ] || rm "${HF_HOME:?}/*" -rf && true
4949
50-
- name: run tests
51-
run: pdm run pytest --enable-coredumpy --coredumpy-dir ${{ env.COREDUMPY_DUMP_DIR }}
52-
5350
- name: run coverage
5451
run: |
55-
pdm run coverage run -m pytest
52+
sh ./scripts/coverage.sh
5653
pdm run coverage report -m
5754
pdm run coverage xml -i
5855

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ multitest:
2525

2626
coverage:
2727
make deps; \
28-
pdm run coverage run $(EXTRA_COVERAGEPY_ARGS) -m pytest; \
28+
pdm run coverage run $(EXTRA_COVERAGEPY_ARGS) -m pytest --enable-coredumpy --coredumpy-dir dumps; \
2929
pdm run coverage html; \
3030
pdm run coverage report -m
3131

0 commit comments

Comments
 (0)