forked from wrf-model/WRF
-
Notifications
You must be signed in to change notification settings - Fork 0
141 lines (136 loc) · 4.51 KB
/
ci.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
name: Regression Suite
run-name : ${{ github.event_name == 'push' && 'CI' || github.event.label.name == 'compile-tests' }} (${{ github.event_name }})
on:
push:
branches: [ master ]
pull_request:
types: [ labeled ]
jobs:
buildtests:
if : ${{ github.event.label.name == 'compile-tests' }} || ${{ github.event_name == 'push' }}
strategy:
max-parallel: 4
fail-fast: false
matrix:
# # Write our tests out this way for easier legibility
# test :
# -
# -
# -
# -
# -
# -
# Specify accounts specific to each HPC resource
# https://stackoverflow.com/a/68940067
testSet :
- host : mmm-mystic
archive : /home/aislas/github/wrf/logs/
account : NMMM0012
name : "Compilation Tests"
fileroot : wrf_arw_tests
pool : 2
tpool : 4
mkdirs : true
tests :
- make-gnu
- make-gnu-mpi
- host : mmm-mystic
archive : /home/aislas/github/wrf/logs/
account : NMMM0012
name : "Compilation Tests"
fileroot : wrf_arw_tests
pool : 2
tpool : 4
mkdirs : false
tests :
- cmake-gnu
- cmake-gnu-mpi
# - {
# host : mmm-mystic,
# account : NMMM0012,
# name : "Compilation Tests",
# fileroot : wrf_arw_tests,
# pool : 2,
# mkdirs : true,
# tests : [
# make-gnu, make-gnu-mpi
# ]
# }
# - {
# host : mmm-mystic,
# account : NMMM0012,
# name : "Compilation Tests",
# fileroot : wrf_arw_tests,
# pool : 2,
# mkdirs : false,
# tests : [
# cmake-gnu, cmake-gnu-mpi
# ]
# }
# - {
# host : derecho,
# account : NMMM0012,
# name : "Compilation Tests",
# fileroot : wrf_arw_tests,
# args : -j="-l select=1",
# pool : 6,
# mkdirs : true,
# tests : [
# gnu-nompi, gnu-mpi, intel-nompi, intel-mpi, pgi-nompi, pgi-mpi
# ]
# }
# - {
# host : derecho,
# account : NMMM0012,
# name : "em_real 0-3, A-E Tests",
# fileroot : wrf_em_real_tests,
# args : -j="-l select=1",
# pool : 9,
# mkdirs : true,
# tests : [
# em_real0, em_real1, em_real2, em_real3, em_realA, em_realB, em_realC, em_realD, em_realE
# ]
# }
# - {
# host : derecho,
# account : NMMM0012,
# name : "em_real G-L Tests",
# fileroot : wrf_em_real_tests,
# args : -j="-l select=1",
# pool : 9,
# mkdirs : true,
# tests : [
# em_realF, em_realG, em_realH, em_realI, em_realJ, em_realK, em_realL0, em_realL1, em_realL2,
# ]
# }
# - {
# host : derecho,
# account : NMMM0012,
# name : "em_ideal Tests",
# fileroot : wrf_em_ideal_tests,
# args : -j="-l select=1",
# pool : 5,
# mkdirs : true,
# tests : [ em_b_wave, em_hill2d_x, em_quarter_ss_real8
# # Both commented out for failing LFN differences
# # em_fire
# # em_quarter_ss
# ]
# }
uses : ./.github/workflows/wrf_test.yml
with :
label : ${{ github.event.label.name }}
archive : ${{ matrix.testSet.archive }}
name : ${{ matrix.testSet.name }}
host : ${{ matrix.testSet.host }}
fileroot : ${{ matrix.testSet.fileroot }}
account : ${{ matrix.testSet.account }}
tests : ${{ toJson( matrix.testSet.tests ) }}
mkdirs : ${{ matrix.testSet.mkdirs }}
args : ${{ matrix.testSet.args }}
pool : ${{ matrix.testSet.pool }}
tpool : ${{ matrix.testSet.tpool }}
permissions:
contents: read
pull-requests: write
name : Test ${{ matrix.testSet.name }} on ${{ matrix.testSet.host }}