From 20751fa4c520e65d81aad8452f1c964029ee4030 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sun, 14 Apr 2024 12:43:35 -0400 Subject: [PATCH] ci: fix coverage ignore directories --- .github/workflows/CI.yml | 12 ++++++------ codecov.yml | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 3c97376c758..b442fd746a5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -500,8 +500,8 @@ jobs: run: | ${{ steps.python.outputs.python-path }} -m pip install gcovr ${{ steps.python.outputs.python-path }} -m gcovr -r .. \ - --exclude ../tests/ \ - --exclude ../third-party/ \ + --exclude '.*tests/.*' \ + --exclude '.*tests/.*' \ --xml-pretty \ -o coverage.xml @@ -823,8 +823,8 @@ jobs: cd ${build_dir} ${{ steps.python.outputs.python-path }} -m pip install gcovr sudo ${{ steps.python.outputs.python-path }} -m gcovr -r ../${dir} \ - --exclude ../${dir}/tests/ \ - --exclude ../${dir}/third-party/ \ + --exclude '.*${dir}/tests/.*' \ + --exclude '.*${dir}/third-party/.*' \ --gcov-object-directory $(pwd) \ --verbose \ --xml-pretty \ @@ -1063,8 +1063,8 @@ jobs: run: | ${{ steps.python-path.outputs.python-path }} -m pip install gcovr ${{ steps.python-path.outputs.python-path }} -m gcovr -r .. \ - --exclude ../tests/ \ - --exclude ../third-party/ \ + --exclude '.*tests/.*' \ + --exclude '.*tests/.*' \ --xml-pretty \ -o coverage.xml diff --git a/codecov.yml b/codecov.yml index 59209e46432..b50701c758b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -13,3 +13,7 @@ comment: layout: "diff, flags, files" behavior: default require_changes: false # if true: only post the comment if coverage changes + +ignore: + - "tests" + - "third-party"