mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-13 17:25:49 +03:00
Fixed Python coverage on macOS and Ubuntu GHA
This commit is contained in:
parent
3aa5d56bae
commit
9b3c53caba
|
@ -1,18 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
# gather the coverage data
|
||||
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
|
||||
# filter to remove system headers
|
||||
lcov --remove coverage.info '/usr/*' -o coverage.filtered.info
|
||||
|
||||
pip install codecov
|
||||
coverage report
|
||||
coverage xml
|
||||
|
||||
if [[ $TRAVIS ]]; then
|
||||
codecov
|
||||
|
|
Loading…
Reference in New Issue
Block a user