ci: fix coverage ignore directories (#2420)
This commit is contained in:
parent
fb4d4f50ec
commit
76d08eb883
2 changed files with 10 additions and 6 deletions
12
.github/workflows/CI.yml
vendored
12
.github/workflows/CI.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue