.github/workflows/.coverage.yml #542
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
name: Coverage | |
steps: | |
- uses: actions/[email protected] | |
- name: build | |
run: | | |
sudo apt-get install cmake lcov | |
mkdir build-debug && cd build-debug | |
cmake .. -DCMAKE_BUILD_TYPE=Coverage | |
make -j | |
make coverage | |
bash <(curl -s https://codecov.io/bash) -f coverage.info -t ${{ secrets.CODECOV }} |