forked from abacusmodeling/abacus-develop
-
Notifications
You must be signed in to change notification settings - Fork 134
33 lines (32 loc) · 920 Bytes
/
coverage.yml
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
name: Coverage Analysis
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
test-coverage:
name: Generate Coverage Report
runs-on: self-hosted
container: ghcr.io/deepmodeling/abacus-development-kit:gnu
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Requirements for Coverage Testing
run: |
apt update && apt install -y lcov
- name: Building
run: |
cmake -B build -DENABLE_DEEPKS=ON -DENABLE_LIBXC=ON -DBUILD_TESTING=ON -DENABLE_COVERAGE=ON
cmake --build build -j`nproc`
cmake --install build
- name: Testing
env:
OMP_NUM_THREADS: 1
run: |
cmake --build build --target test ARGS="-V --timeout 21600"
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
if: ${{ ! cancelled() }}
with:
gcov: true