Skip to content

Commit 53b5ffb

Browse files
bilkeendJunction
authored andcommitted
[ci] Add coverage job.
1 parent c45555d commit 53b5ffb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/cmake-single-platform.yml

+17
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,20 @@ jobs:
2626
# working-directory: ${{github.workspace}}/build
2727
# run: ctest -C ${{env.BUILD_TYPE}}
2828

29+
coverage:
30+
runs-on: ubuntu-latest
31+
env:
32+
BUILD_TYPE: Debug
33+
steps:
34+
- uses: actions/checkout@v4
35+
- name: Configure CMake
36+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
37+
- name: Build
38+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
39+
- name: Test
40+
working-directory: ${{github.workspace}}/build
41+
run: ./vtkdiff --help
42+
- name: Coverage
43+
working-directory: ${{github.workspace}}/build
44+
run: pipx run gcovr -r ${{github.workspace}}
45+

0 commit comments

Comments
 (0)