From c132ba8512a3a13cf64a34117647928128bc2684 Mon Sep 17 00:00:00 2001 From: Reuven <44209964+reuvenperetz@users.noreply.github.com> Date: Tue, 7 Jan 2025 17:23:50 +0200 Subject: [PATCH] Add context to coverage report --- .github/workflows/run_tests_suite_coverage.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run_tests_suite_coverage.yml b/.github/workflows/run_tests_suite_coverage.yml index fcb6125f5..49577de96 100644 --- a/.github/workflows/run_tests_suite_coverage.yml +++ b/.github/workflows/run_tests_suite_coverage.yml @@ -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: @@ -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