Skip to content

Commit d4d7fbe

Browse files
authored
Merge pull request mom-ocean#1577 from NOAA-GFDL/dev-candidate-main-2022-07-21
GFDL to main 2022-07-21
2 parents 4f6f975 + c619781 commit d4d7fbe

139 files changed

Lines changed: 7459 additions & 3386 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.codecov.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ coverage:
99
threshold: 100%
1010
base: parent
1111
comment:
12-
# This must be set to the number of test cases (TCs)
13-
after_n_builds: 8
12+
# This is set to the number of TCs, plus unit, but can be removed
13+
# (i.e. set to 1) when reporting is separated from coverage.
14+
after_n_builds: 9
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'install-macos-prerequisites'
2+
3+
description: 'Install prerequisites for Mac OS compilation'
4+
5+
runs:
6+
using: 'composite'
7+
8+
steps:
9+
- name: Install macOS packages
10+
shell: bash
11+
run: |
12+
echo "::group::Install packages"
13+
brew update
14+
brew install automake
15+
brew install netcdf
16+
brew install mpich
17+
echo "::endgroup::"

.github/actions/testing-setup/action.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ runs:
2727
env
2828
echo "::endgroup::"
2929
30-
- name: Install needed packages for compiling
31-
shell: bash
32-
run: |
33-
echo "::group::Install linux packages"
34-
sudo apt-get update
35-
sudo apt-get install netcdf-bin libnetcdf-dev libnetcdff-dev mpich libmpich-dev
36-
sudo apt-get install linux-tools-common
37-
echo "::endgroup::"
38-
3930
- name: Compile FMS library
4031
shell: bash
4132
run: |
@@ -52,7 +43,6 @@ runs:
5243
echo "FCFLAGS_DEBUG=-g -O0 -Wextra -Wno-compare-reals -fbacktrace -ffpe-trap=invalid,zero,overflow -fcheck=bounds" >> config.mk
5344
echo "FCFLAGS_REPRO=-g -O2 -fbacktrace" >> config.mk
5445
echo "FCFLAGS_INIT=-finit-real=snan -finit-integer=2147483647 -finit-derived" >> config.mk
55-
echo "FCFLAGS_COVERAGE=--coverage" >> config.mk
5646
cat config.mk
5747
echo "::endgroup::"
5848
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'install-ubuntu-prerequisites'
2+
3+
description: 'Install prerequisites for Ubuntu Linux compilation'
4+
5+
runs:
6+
using: 'composite'
7+
steps:
8+
- name: Install Ubuntu Linux packages
9+
shell: bash
10+
run: |
11+
echo "::group::Install linux packages"
12+
sudo apt-get update
13+
sudo apt-get install netcdf-bin
14+
sudo apt-get install libnetcdf-dev
15+
sudo apt-get install libnetcdff-dev
16+
sudo apt-get install mpich
17+
sudo apt-get install libmpich-dev
18+
sudo apt-get install linux-tools-common
19+
echo "::endgroup::"

.github/workflows/coupled-api.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
with:
1616
submodules: recursive
1717

18+
- uses: ./.github/actions/ubuntu-setup
19+
1820
- uses: ./.github/actions/testing-setup
1921
with:
2022
build_symmetric: 'false'

.github/workflows/coverage.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@ jobs:
1818
with:
1919
submodules: recursive
2020

21+
- uses: ./.github/actions/ubuntu-setup
22+
2123
- uses: ./.github/actions/testing-setup
2224

25+
- name: Compile unit testing
26+
run: make -j build/unit/MOM6
27+
28+
- name: Run unit tests
29+
run: make unit.cov.upload
30+
31+
- name: Compile MOM6 with code coverage
32+
run: make -j build/cov/MOM6
33+
2334
- name: Run and post coverage
24-
run: make run.symmetric -k -s
35+
run: make run.cov -k -s

.github/workflows/expression.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
with:
1616
submodules: recursive
1717

18+
- uses: ./.github/actions/ubuntu-setup
19+
1820
- uses: ./.github/actions/testing-setup
1921

2022
- name: Compile MOM6 using repro optimization
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: MacOS regression
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
test-macos-regression:
7+
8+
runs-on: macOS-latest
9+
10+
env:
11+
CC: gcc-11
12+
FC: gfortran-11
13+
14+
defaults:
15+
run:
16+
working-directory: .testing
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: recursive
22+
23+
- uses: ./.github/actions/macos-setup
24+
25+
- uses: ./.github/actions/testing-setup
26+
27+
- name: Compile reference model
28+
run: make build.regressions MOM_TARGET_SLUG=$GITHUB_REPOSITORY MOM_TARGET_LOCAL_BRANCH=$GITHUB_BASE_REF DO_REGRESSION_TESTS=true -j
29+
30+
- name: Create validation data
31+
run: make run.symmetric -k -s
32+
33+
- name: Regression test
34+
run: make test.regression DO_REGRESSION_TESTS=true -k -s
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: MacOS stencil tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test-macos-stencil:
7+
8+
runs-on: macOS-latest
9+
10+
env:
11+
CC: gcc-11
12+
FC: gfortran-11
13+
14+
defaults:
15+
run:
16+
working-directory: .testing
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
submodules: recursive
22+
23+
- uses: ./.github/actions/macos-setup
24+
25+
- uses: ./.github/actions/testing-setup
26+
27+
- name: Compile MOM6 in asymmetric memory mode
28+
run: make build/asymmetric/MOM6 -j
29+
30+
- name: Create validation data
31+
run: make run.symmetric -k -s
32+
33+
- name: Run tests
34+
run: make test.grid test.layout test.rotate -k -s

.github/workflows/other.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
with:
1616
submodules: recursive
1717

18+
- uses: ./.github/actions/ubuntu-setup
19+
1820
- uses: ./.github/actions/testing-setup
1921

2022
- name: Compile with openMP

0 commit comments

Comments
 (0)