-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (32 loc) · 1.11 KB
/
coverage_test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: coverage-test
on: [pull_request, push]
env:
CC: gcc-9
CXX: g++-9
apt_options: -o Acquire::Retries=3
jobs:
build:
name: coverage-test
runs-on: ubuntu-20.04
# Run on external PRs, but not internal PRs as they'll be run by the push
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Fetch repository
run: git fetch --prune --unshallow
- name: Get submodules
run: git submodule update --init --force --recursive
- name: Install packages
run: |
sudo apt-get ${{env.apt_options}} update -y
sudo apt-get ${{env.apt_options}} install -y build-essential libhdf5-dev lcov language-pack-de
- name: Build and run unittests
run: |
locale -a
ci/coverage_test.sh
- name: Upload Coverage to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: build/build-coverage/coverage.info