From 84ac72c34c70c688a1e2f7bb3ac011bc3dc9c4d5 Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Mon, 10 Jun 2024 15:17:16 +0200 Subject: [PATCH] [ci] Add coverage job. --- .github/workflows/cmake-single-platform.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 88a35f8..b28e4a6 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -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}} +