Add coverage CI
Temporarily disabled until setup internally Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
This commit is contained in:
parent
040ed864ba
commit
f5e221a976
24
.github/workflows/test.yaml
vendored
24
.github/workflows/test.yaml
vendored
@ -49,3 +49,27 @@ jobs:
|
||||
uses: lukka/run-cmake@v10.5
|
||||
with:
|
||||
workflowPreset: "${{ matrix.toolchain }}-ci"
|
||||
coverage:
|
||||
name: Run coverage tests
|
||||
needs: [ test ]
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/nlohmann/json-ci:v2.4.0
|
||||
# TODO: Temporarily disabled because not implemented
|
||||
if: ${{ false && (github.event_name == 'push' || github.event_name == 'pull_request') }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Get test coverage
|
||||
uses: lukka/run-cmake@v10.5
|
||||
with:
|
||||
workflowPreset: ci-coverage
|
||||
- name: Get lcov data
|
||||
uses: danielealbano/lcov-action@v3
|
||||
with:
|
||||
# Note lcov-action prepends and appends wild-cards *. Account for those
|
||||
# https://github.com/danielealbano/lcov-action/issues/11
|
||||
remove_patterns: /test/,/cmake-build*/
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
files: coverage.info
|
||||
verbose: true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user