forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (30 loc) · 868 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
34
35
36
37
38
39
40
41
42
name: Code coverage
on: [push, pull_request]
jobs:
build-coverage:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .testing
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/ubuntu-setup
- uses: ./.github/actions/testing-setup
- name: Compile unit tests
run: make -j build.unit
- name: Run unit tests
run: make run.cov.unit
- name: Report unit test coverage to CI
run: make report.cov.unit
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Compile ocean-only MOM6 with code coverage
run: make -j build/cov/MOM6
- name: Run coverage tests
run: make -k run.cov
- name: Report coverage to CI
run: make report.cov
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}