Skip to content

Bump actions/checkout from 3 to 4 (#64) #199

Bump actions/checkout from 3 to 4 (#64)

Bump actions/checkout from 3 to 4 (#64) #199

Workflow file for this run

name: Code coverage
on:
- push
- pull_request
jobs:
build:
name: Codecov
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Dependencies
run: |
sudo apt install libeigen3-dev
python -m pip install gcovr
- name: Configure
run: |
cmake \
-Bbuild \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_COMPILER=clang-10 \
-DCMAKE_CXX_COMPILER=clang++-10 \
-DOVERLAP_COVERAGE=ON
- name: Build
run: cmake --build build
- name: Generate coverage report
run: |
cd build
ctest --output-on-failure
~/.local/bin/gcovr \
--gcov-executable 'llvm-cov-10 gcov' \
-r ../ \
--xml -o coverage.xml \
-e ../third_party/ -e ../test/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./build/coverage.xml
fail_ci_if_error: true