Skip to content

Commit

Permalink
Add context to coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
reuvenperetz authored Jan 7, 2025
1 parent ce318c0 commit c132ba8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/run_tests_suite_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
COVERAGE_THRESHOLD: 98
steps:
- uses: actions/checkout@v4

- name: Create .coveragerc
run: |
echo "[run]" > .coveragerc
echo "dynamic_context = test_function" >> .coveragerc
- name: Install Python 3
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -69,7 +75,7 @@ jobs:
run: coverage combine

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

- name: Archive code coverage results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit c132ba8

Please sign in to comment.