File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 26
26
poetry install --with test
27
27
- name : Generate coverage report
28
28
run : |
29
- coverage run -m pytest -- omit="src/**/test_*.py,src/codeflare_sdk/common/utils/unit_test_support.py"
29
+ coverage run -- omit="src/**/test_*.py,src/codeflare_sdk/common/utils/unit_test_support.py" -m pytest
30
30
31
31
- name : Coverage Badge
32
32
uses : tj-actions/coverage-badge-py@v2
Original file line number Diff line number Diff line change 26
26
poetry install --with test
27
27
- name : Test with pytest and check coverage
28
28
run : |
29
- coverage run -m pytest
29
+ coverage run --omit="src/**/test_*.py,src/codeflare_sdk/common/utils/unit_test_support.py" - m pytest
30
30
coverage=$(coverage report -m | tail -1 | tail -c 4 | head -c 2)
31
31
if (( $coverage < 90 )); then echo "Coverage failed at ${coverage}%"; exit 1; else echo "Coverage passed, ${coverage}%"; fi
32
32
- name : Upload to Codecov
You can’t perform that action at this time.
0 commit comments