Feature/code coverage #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code Coverage | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| name: ubuntu-latest, Debug | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Respond Repository | |
| uses: actions/checkout@v4 | |
| - name: Install Boost | |
| uses: MarkusJx/install-boost@v2.4.5 | |
| id: install-boost | |
| with: | |
| boost_version: 1.86.0 | |
| platform_version: 22.04 | |
| - name: Install Eigen3 | |
| uses: kupns-aka-kupa/setup-eigen3@master | |
| id: install-eigen3 | |
| with: | |
| version: 3.4.0 | |
| env: | |
| CMAKE_GENERATOR: Ninja | |
| - name: Configure Project | |
| env: | |
| BOOST_ROOT: ${{ steps.install-boost.outputs.BOOST_ROOT }} | |
| EIGEN3_INCLUDE_DIR: ${{ steps.install-eigen3.outputs.EIGEN3_INCLUDE_DIR }} | |
| EIGEN3_DIR: ${{ steps.install-eigen3.outputs.EIGEN3_DIR}} | |
| run: cmake --workflow --preset gcc-debug | |
| - name: Check Test Coverage | |
| uses: threeal/gcovr-action@v1.1.0 | |
| with: | |
| working-directory: ${{github.workspace}} | |
| excludes: | | |
| Eigen3/* | |
| boost/* | |
| gtest/* | |
| googletest/* | |
| build/* | |
| fail-under-line: 80 | |
| html-out: coverage.html | |
| html-details: true | |
| html-title: TESPOND Test Coverage Report | |
| html-theme: github.green | |
| - name: Upload Code Coverage Results | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage | |
| path: ${{github.workspace}}/coverage.html |