From 63b4a37984aba48b60726855eca63df82f0113e3 Mon Sep 17 00:00:00 2001 From: DNKpp Date: Sat, 30 Sep 2023 20:32:42 +0200 Subject: [PATCH] fix: define exclude-pattern-prefix in coverage workflow --- .github/workflows/coverage.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index ece1470c..e84ae81b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -56,7 +56,11 @@ jobs: - name: Run gcovr run: | gcovr --root ${{env.TESTS_DIR}} --filter include/Simple-Utility --keep -j 4 \ - --exclude-lines-by-pattern "\s*assert\(" --exclude-unreachable-branches --exclude-noncode-lines --exclude-throw-branches \ + --exclude-lines-by-pattern "\s*assert\(" \ + --exclude-pattern-prefix "\s*(LCOV|GCOV|GCOVR)" \ + --exclude-unreachable-branches \ + --exclude-noncode-lines \ + --exclude-throw-branches \ --cobertura ${{env.COBERTURA_REPORT}} --cobertura-pretty \ --html-nested ${{env.HTML_REPORT_DIR}} --html-title "Simple-Utility Coverage Report" \ --coveralls ${{env.COVERALLS_REPORT}} --coveralls-pretty