From 593883a13f6d80ab9aa810d1c7dc8163106d03da Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 13 Oct 2024 11:18:17 -0400 Subject: [PATCH] ci(coverage): simplify gcovr exclusions (#3299) --- .github/workflows/CI.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c37a97d8..50eb3c1d 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -488,13 +488,11 @@ jobs: working-directory: build run: | ${{ steps.python.outputs.python-path }} -m pip install gcovr - ${{ steps.python.outputs.python-path }} -m gcovr -r .. \ + ${{ steps.python.outputs.python-path }} -m gcovr . -r ../src \ --exclude-noncode-lines \ --exclude-throw-branches \ --exclude-unreachable-branches \ - --exclude '.*_deps/.*' \ - --exclude '.*tests/.*' \ - --exclude '.*third-party/.*' \ + --verbose \ --xml-pretty \ -o coverage.xml @@ -922,13 +920,10 @@ jobs: cd ${build_dir} ${{ steps.python.outputs.python-path }} -m pip install gcovr - sudo ${{ steps.python.outputs.python-path }} -m gcovr -r ../${dir} \ + sudo ${{ steps.python.outputs.python-path }} -m gcovr . -r ../${dir}/src \ --exclude-noncode-lines \ --exclude-throw-branches \ --exclude-unreachable-branches \ - --exclude '.*${dir}/_deps/.*' \ - --exclude '.*${dir}/tests/.*' \ - --exclude '.*${dir}/third-party/.*' \ --gcov-object-directory $(pwd) \ --verbose \ --xml-pretty \ @@ -1190,13 +1185,11 @@ jobs: working-directory: build run: | ${{ steps.python-path.outputs.python-path }} -m pip install "gcovr<8.0" - ${{ steps.python-path.outputs.python-path }} -m gcovr -r .. \ + ${{ steps.python-path.outputs.python-path }} -m gcovr . -r ../src \ --exclude-noncode-lines \ --exclude-throw-branches \ --exclude-unreachable-branches \ - --exclude '.*_deps/.*' \ - --exclude '.*tests/.*' \ - --exclude '.*third-party/.*' \ + --verbose \ --xml-pretty \ -o coverage.xml