ci(coverage): simplify gcovr exclusions (#3299)
This commit is contained in:
17
.github/workflows/CI.yml
vendored
17
.github/workflows/CI.yml
vendored
@@ -488,13 +488,11 @@ jobs:
|
|||||||
working-directory: build
|
working-directory: build
|
||||||
run: |
|
run: |
|
||||||
${{ steps.python.outputs.python-path }} -m pip install gcovr
|
${{ 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-noncode-lines \
|
||||||
--exclude-throw-branches \
|
--exclude-throw-branches \
|
||||||
--exclude-unreachable-branches \
|
--exclude-unreachable-branches \
|
||||||
--exclude '.*_deps/.*' \
|
--verbose \
|
||||||
--exclude '.*tests/.*' \
|
|
||||||
--exclude '.*third-party/.*' \
|
|
||||||
--xml-pretty \
|
--xml-pretty \
|
||||||
-o coverage.xml
|
-o coverage.xml
|
||||||
|
|
||||||
@@ -922,13 +920,10 @@ jobs:
|
|||||||
|
|
||||||
cd ${build_dir}
|
cd ${build_dir}
|
||||||
${{ steps.python.outputs.python-path }} -m pip install gcovr
|
${{ 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-noncode-lines \
|
||||||
--exclude-throw-branches \
|
--exclude-throw-branches \
|
||||||
--exclude-unreachable-branches \
|
--exclude-unreachable-branches \
|
||||||
--exclude '.*${dir}/_deps/.*' \
|
|
||||||
--exclude '.*${dir}/tests/.*' \
|
|
||||||
--exclude '.*${dir}/third-party/.*' \
|
|
||||||
--gcov-object-directory $(pwd) \
|
--gcov-object-directory $(pwd) \
|
||||||
--verbose \
|
--verbose \
|
||||||
--xml-pretty \
|
--xml-pretty \
|
||||||
@@ -1190,13 +1185,11 @@ jobs:
|
|||||||
working-directory: build
|
working-directory: build
|
||||||
run: |
|
run: |
|
||||||
${{ steps.python-path.outputs.python-path }} -m pip install "gcovr<8.0"
|
${{ 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-noncode-lines \
|
||||||
--exclude-throw-branches \
|
--exclude-throw-branches \
|
||||||
--exclude-unreachable-branches \
|
--exclude-unreachable-branches \
|
||||||
--exclude '.*_deps/.*' \
|
--verbose \
|
||||||
--exclude '.*tests/.*' \
|
|
||||||
--exclude '.*third-party/.*' \
|
|
||||||
--xml-pretty \
|
--xml-pretty \
|
||||||
-o coverage.xml
|
-o coverage.xml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user