mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
GHA: Install lcov on macOS to report coverage
This commit is contained in:
parent
f90a21965a
commit
fa40817efb
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
|
@ -71,5 +71,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
.travis/after_success.sh
|
.travis/after_success.sh
|
||||||
env:
|
env:
|
||||||
|
MATRIX_OS: ${{ matrix.os }}
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
|
|
|
@ -1,7 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# gather the coverage data
|
# gather the coverage data
|
||||||
sudo apt-get -qq install lcov
|
if [[ "$MATRIX_OS" == "macOS-latest" ]]; then
|
||||||
|
brew install lcov
|
||||||
|
else
|
||||||
|
sudo apt-get -qq install lcov
|
||||||
|
fi
|
||||||
|
|
||||||
lcov --capture --directory . -b . --output-file coverage.info
|
lcov --capture --directory . -b . --output-file coverage.info
|
||||||
# filter to remove system headers
|
# filter to remove system headers
|
||||||
lcov --remove coverage.info '/usr/*' -o coverage.filtered.info
|
lcov --remove coverage.info '/usr/*' -o coverage.filtered.info
|
||||||
|
|
Loading…
Reference in New Issue
Block a user