Add the homogenised Laplace operator #32
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 Monitor | |
on: | |
pull_request: | |
branches: [ "**" ] | |
env: | |
BUILD_TYPE: Coverage | |
jobs: | |
coverage-monitor: | |
# The CMake configure and build commands are platform agnostic and should work equally | |
# well on Windows or Mac. You can convert this to a matrix build if you need | |
# cross-platform coverage. | |
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Configure system | |
run: sudo apt-get update | |
- name: Install Eigen3 | |
run: sudo apt-get install --yes libeigen3-dev | |
- name: Install Gcovr | |
run: sudo apt install gcovr | |
- name: Configure CMake | |
# Use a bash shell so we can use the same syntax for environment variable | |
# access regardless of the host operating system | |
shell: bash | |
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build | |
- name: Build | |
shell: bash | |
run: cmake --build build --config $BUILD_TYPE -j 2 | |
- name: Run Unittests | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: ctest -C $BUILD_TYPE -L unittests --output-on-failure | |
- name: Create Coverage Report | |
working-directory: ${{github.workspace}}/build | |
shell: bash | |
run: gcovr -f ../Bembel -r ../ |