Skip to content

Commit

Permalink
install coverage also outside of the frameworks envs
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenp committed Oct 15, 2024
1 parent 79320c9 commit f6bf62b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/run_tests_suite_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
with:
python-version: '3.10'

- name: Set up Coverage
run: |
python -m pip install --upgrade pip
pip install coverage
- name: Set up TensorFlow environment
run: |
python -m venv tf_env
Expand Down Expand Up @@ -57,13 +62,16 @@ jobs:
- name: Combine Multiple Coverage Files
run: coverage combine

- name: Run Coverage HTML
run: coverage html -i --directory ./coverage_report_html

- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: |
coverage_report_html
- name: Coverage Report
run: coverage report -i --skip-covered --sort cover --fail-under $COVERAGE_THRESHOLD

0 comments on commit f6bf62b

Please sign in to comment.