Skip to content

Commit

Permalink
[ci] Add coverage job.
Browse files Browse the repository at this point in the history
  • Loading branch information
bilke committed Jun 10, 2024
1 parent 7f41a86 commit 84ac72c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,20 @@ jobs:
# working-directory: ${{github.workspace}}/build
# run: ctest -C ${{env.BUILD_TYPE}}

coverage:
runs-on: ubuntu-latest
env:
BUILD_TYPE: Debug
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ./vtkdiff --help
- name: Coverage
working-directory: ${{github.workspace}}/build
run: pipx run gcovr -r ${{github.workspace}}

0 comments on commit 84ac72c

Please sign in to comment.