re-enrable MacOS #24
Workflow file for this run
This file contains 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", "pull_request"] | |
jobs: | |
coverage: | |
name: Coverage | |
runs-on: ubuntu-latest | |
env: | |
BUILD_TYPE: Release | |
CC: gcc | |
CFLAGS: --coverage | |
CXX: g++ | |
CXXFLAGS: --coverage | |
FC: gfortran | |
FCFLAGS: --coverage | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install dependencies | |
run: sudo apt-get install lcov libeigen3-dev | |
- name: cmake | |
run: cmake . -DBUILD_EXAMPLES=OFF -DENABLE_MATHEMATICA=OFF -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} | |
- name: cmake build | |
run: cmake --build . --config ${{ env.BUILD_TYPE }} | |
- name: ctest | |
run: ctest -T Test -T Coverage -C ${{ env.BUILD_TYPE }} | |
env: | |
CTEST_OUTPUT_ON_FAILURE: 1 | |
- name: Lcov | |
run: lcov --directory . --capture --exclude '/usr/*' --exclude '*/test/*' --output-file=coverage.lcov | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
file: coverage.lcov |