This repository was archived by the owner on Oct 22, 2025. It is now read-only.
  
  
  
  
deal with codim vert/edge in 2D #187
  
    
      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: Coverage | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - '.github/workflows/coverage.yml' | |
| - 'cmake/**' | |
| - 'src/**' | |
| - 'tests/**' | |
| - 'CMakeLists.txt' | |
| jobs: | |
| Coverage: | |
| name: Code Coverage | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/[email protected] | |
| with: | |
| fetch-depth: 10 | |
| - name: Dependencies | |
| run: | | |
| sudo apt-get install ccache lcov | |
| echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" | |
| - name: Cache Build | |
| id: cache-build | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.CACHE_PATH }} | |
| key: coverage-cache | |
| - name: Prepare ccache | |
| run: | | |
| ccache --max-size=1.0G | |
| ccache -V && ccache --show-config | |
| ccache --show-stats && ccache --zero-stats\ | |
| - name: Configure | |
| run: | | |
| mkdir -p build | |
| cd build | |
| cmake .. \ | |
| -DIPC_TOOLKIT_BUILD_TESTS=ON \ | |
| -DIPC_TOOLKIT_WITH_CODE_COVERAGE=ON \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| - name: Build | |
| run: cd build; make -j2; ccache --show-stats | |
| - name: Run Coverage | |
| run: | | |
| cd build | |
| ctest --verbose --output-on-failure | |
| lcov --directory . --capture --output-file coverage.info | |
| lcov --remove coverage.info '/usr/*' "${HOME}"'/.cache/*' '*tests/*' --output-file coverage.info | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v3 | |
| env: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: coverage.info | |
| flags: unittests | |
| name: ipc-toolkit | |
| fail_ci_if_error: true | |
| verbose: true |