Skip to content

Commit 6c441da

Browse files
authored
Merge pull request #1 from islas/test-workflow
Using original master branch naming
2 parents 4732df1 + b3e2ed5 commit 6c441da

5 files changed

Lines changed: 31 additions & 10 deletions

File tree

.ci/env/hostenv.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
hostname=$( uname -n )
4+
5+
if [ "${hostname}" = "polaris" ]; then
6+
# WSL Agent
7+
. .ci/env/wsl.sh
8+
elif [ "${hostname}" = *"cheyenne"* ]; then
9+
# Cheyenne HPC SuSE PBS
10+
echo "not set yet"
11+
fi

.ci/env/wsl.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
export NETCDF=/opt/ncar/netcdf/
4+
export MPICH=/opt/ncar/mpich

.ci/tests/build.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
workingDirectory=$1
33
shift
44
compileOption=$1
5-
makejobs=$3
5+
makejobs=$2
66

77
cd $workingDirectory
88

9-
echo -ne "$compileOption\n" | ./configure
9+
. .ci/env/hostenv.sh
10+
11+
./clean -a
12+
echo "$compileOption" | ./configure
1013

1114
if [ ! -f configure.wrf ]; then
1215
echo "Failed to configure"

.ci/wrf_arw_tests.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@
88
{
99
"submit_options" :
1010
{
11-
"resources" : "1:ncpus=12",
11+
"resources" : "1:ncpus=20",
1212
"timelimit" : "01:00:00"
1313
},
1414
"steps" :
1515
{
1616
"serial" :
1717
{
1818
"command" : ".ci/tests/build.sh",
19-
"arguments" : [ "32", "-j 12" ]
19+
"arguments" : [ "32", "-j 20" ]
2020
},
2121
"sm" :
2222
{
2323
"command" : ".ci/tests/build.sh",
24-
"arguments" : [ "33", "-j 12" ],
24+
"arguments" : [ "33", "-j 20" ],
2525
"dependencies" : { "serial" : "afterany" }
2626
},
2727
"dm" :
2828
{
2929
"command" : ".ci/tests/build.sh",
30-
"arguments" : [ "34", "-j 12" ],
30+
"arguments" : [ "34", "-j 20" ],
3131
"dependencies" : { "sm" : "afterany" }
3232
},
3333
"dm+sm" :
3434
{
3535
"command" : ".ci/tests/build.sh",
36-
"arguments" : [ "35", "-j 12" ],
36+
"arguments" : [ "35", "-j 20" ],
3737
"dependencies" : { "dm" : "afterany" }
3838
}
3939
}

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Regression Suite
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ master ]
66
pull_request:
77
types: [ labeled ]
88

@@ -15,12 +15,15 @@ jobs:
1515
pull-requests: write
1616
steps:
1717
- uses: actions/checkout@v3
18-
- name: Run test 0
18+
with:
19+
submodules: true
20+
21+
- name: Test GNU Compilation
1922
run: |
2023
./hpc-workflows/.ci/runner.py .ci/wrf_arw_tests.json gnu -s LOCAL -d ..
2124
2225
- name : Remove 'test' label
23-
if : ${{ github.event.label.name == 'test' }}
26+
if : ${{ !cancelled() && github.event.label.name == 'test' }}
2427
env:
2528
PR_NUMBER: ${{ github.event.number }}
2629
run: |

0 commit comments

Comments
 (0)