Skip to content

update to MOM6 main 20230731 and 20230811 updating #93

update to MOM6 main 20230731 and 20230811 updating

update to MOM6 main 20230731 and 20230811 updating #93

Workflow file for this run

name: Code coverage
on: [push, pull_request]
jobs:
build-coverage:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .testing
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ./.github/actions/ubuntu-setup
- uses: ./.github/actions/testing-setup
- name: Compile unit testing
run: make -j build/unit/MOM_unit_tests
- name: Run unit tests
run: make run.cov.unit
- name: Report unit test coverage to CI (PR)
if: github.event_name == 'pull_request'
run: make report.cov.unit REQUIRE_COVERAGE_UPLOAD=true
- name: Report unit test coverage to CI (Push)
if: github.event_name != 'pull_request'
run: make report.cov.unit
- name: Compile ocean-only MOM6 with code coverage
run: make -j build/cov/MOM6
- name: Run coverage tests
run: make -j -k run.cov
- name: Report coverage to CI (PR)
if: github.event_name == 'pull_request'
run: make report.cov REQUIRE_COVERAGE_UPLOAD=true
- name: Report coverage to CI (Push)
if: github.event_name != 'pull_request'
run: make report.cov