mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-03-23 19:44:13 +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
|
#!/bin/bash
|
||||||
|
|
||||||
# gather the coverage data
|
# 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
|
pip install codecov
|
||||||
coverage report
|
coverage xml
|
||||||
|
|
||||||
if [[ $TRAVIS ]]; then
|
if [[ $TRAVIS ]]; then
|
||||||
codecov
|
codecov
|
||||||
|
|
Loading…
Reference in New Issue
Block a user