Fixed Python coverage on macOS and Ubuntu GHA

This commit is contained in:
Andrew Murray 2020-01-19 23:20:48 +11:00
parent 3aa5d56bae
commit 9b3c53caba

View File

@ -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