-
Notifications
You must be signed in to change notification settings - Fork 13
157 lines (122 loc) · 3.9 KB
/
build_testing.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
name: build
on:
push:
pull_request:
jobs:
forward:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- exp: "offline_exf_seaice"
- exp: "global_ocean.cs32x15"
- exp: "tutorial_deep_convection"
- exp: "aim.5l_cs"
- exp: "isomip"
- exp: "global_ocean.90x40x15"
- exp: "tutorial_plume_on_slope"
- exp: "tutorial_advection_in_gyre"
- exp: "hs94.cs-32x32x5"
- exp: "tutorial_global_oce_biogeo"
- exp: "tutorial_global_oce_in_p"
- exp: "tutorial_cfc_offline"
continue-on-error: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up compilers
run: |
sudo apt-get update
sudo apt-get -qq install gfortran
- name: Get a docker image and set it running
run: |
docker pull mitgcm/testreport-images:ubuntu_18_04_villon
docker run -v `pwd`:/MITgcm --name ubuntu_18_04-testreport -t -d mitgcm/testreport-images:ubuntu_18_04_villon /bin/bash
- name: Run a test
env:
MITGCM_EXP: ${{ matrix.exp }}
run: |
. tools/ci/runtr.sh
openad:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- exp: "global_ocean.90x40x15"
continue-on-error: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Get a docker image and set it running
run: |
docker pull mitgcm/mitgcm-openad-test:centos-test
docker run -i -t -v `pwd`:/MITgcm -d --name openad-testing --ulimit stack=-1:-1 --rm mitgcm/mitgcm-openad-test:centos-test /bin/bash
- name: Run testreport
env:
MITGCM_EXP: ${{ matrix.exp }}
MITGCM_DECMD: "docker exec -i openad-testing bash -lc"
MITGCM_TROPT: "-oad -devel -of=../tools/build_options/linux_amd64_gfortran -match 14"
MITGCM_INPUT_DIR_PAT: '/input_oad.*'
run: |
. tools/ci/runtr.sh
openad-other:
runs-on: ubuntu-latest
if: ${{ contains(github.event.pull_request.labels.*.name, 'adjoint') }}
strategy:
matrix:
include:
- exp: "global_oce_latlon"
- exp: "halfpipe_streamice"
- exp: "hs94.1x64x5"
- exp: "isomip"
- exp: "tutorial_global_oce_biogeo"
- exp: "tutorial_global_oce_optim"
- exp: "tutorial_tracer_adjsens"
continue-on-error: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Get a docker image and set it running
run: |
docker pull mitgcm/mitgcm-openad-test:centos-test
docker run -i -t -v `pwd`:/MITgcm -d --name openad-testing --ulimit stack=-1:-1 --rm mitgcm/mitgcm-openad-test:centos-test /bin/bash
- name: Run testreport
env:
MITGCM_EXP: ${{ matrix.exp }}
MITGCM_DECMD: "docker exec -i openad-testing bash -lc"
MITGCM_TROPT: "-oad -devel -of=../tools/build_options/linux_amd64_gfortran -match 14"
MITGCM_INPUT_DIR_PAT: '/input_oad.*'
run: |
. tools/ci/runtr.sh
doc_html:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: install dependencies
run: tools/ci/install_doc_dependencies.sh
- name: build docs
run: |
cd doc
sphinx-build -Wa -b html -d _build_doctrees . _build/html
doc_latex:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: install dependencies
run: tools/ci/install_doc_dependencies.sh
- name: build docs
run: |
cd doc
make clean latexpdf LATEXOPTS="-interaction=nonstopmode -halt-on-error"