Skip to content

[infrastructure] Update Codecov usage (#155) #243

[infrastructure] Update Codecov usage (#155)

[infrastructure] Update Codecov usage (#155) #243

Workflow file for this run

name: Code Coverage
on:
push:
paths-ignore:
- 'README.md'
- 'doc/**'
pull_request:
paths-ignore:
- 'README.md'
- 'doc/**'
jobs:
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: cmake -E make_directory build
- working-directory: build/
run: cmake $GITHUB_WORKSPACE -DCMAKE_CXX_FLAGS="-coverage"
- working-directory: build/
run: cmake --build .
- working-directory: build/
run: ctest --output-on-failure
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}