Merge pull request #232 from tlsa/tlsa/revert-static-assert #177
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
name: Coverage | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@master | |
with: | |
version: 3.10 | |
- name: apt-get install packages | |
run: sudo apt-get update -qq && | |
sudo apt-get install --no-install-recommends -y | |
gcc | |
gcovr | |
git | |
libyaml-dev | |
make | |
- name: coverage test | |
run: make coverage | |
- name: filter output | |
run: find build/coverage -name "*.gc*" -type f -delete; | |
- name: upload coverage | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{secrets.CODECOV_TOKEN}} | |
files: build/coverage.xml | |
flags: unittests | |
name: codecov-umbrella | |
verbose: true |