-
Notifications
You must be signed in to change notification settings - Fork 12
66 lines (64 loc) · 2.45 KB
/
esm_tools_awiesm.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
name: Tests for AWIESM
on:
workflow_dispatch: # Allow manual trigger
inputs:
verbose:
description: Run in verbose mode
required: True
default: True
type: boolean
push:
paths:
- '!docs/**'
- '!README.md'
- 'src/**'
- 'tests/**'
- 'configs/machines/ollie.yaml'
- 'configs/components/echam/*.yaml'
- 'configs/components/jsbach/*.yaml'
- 'configs/components/hdmodel/*.yaml'
- 'configs/components/fesom/*.yaml'
- 'config/components/oasis3mct/*.yaml'
- 'config/setups/awiesm/*.yaml'
- '.github/workflows/esm_tools_awiesm.yml'
jobs:
compile-ollie:
name: Compile Test AWIESM (Ollie)
# Pattern for uses: github-org/repo/some/path/in/repo@commit_or_branch
# If @commit_or_branch is ommited, github actions will break!
# For now, I tie it to release, but there might be better ways of doing
# that, see for instance here: https://tinyurl.com/4x6h373j
uses: "esm-tools/esm_tools/.github/workflows/esm_tools_actions_hpc_awi_ollie.yml@feat/awiesm_final"
secrets:
dkrz-token: ${{ secrets.GITLAB_DKRZ_TOKEN }}
awi-token: ${{ secrets.GITLAB_AWI_TOKEN }}
with:
model_name: awiesm
# versions to test as a space seperated list
model_version: "2.1"
skip_clean: True
test-job:
runs-on: hpc_awi_ollie
name: Test Run for AWIESM (Ollie)
needs: compile-ollie
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
SBATCH_WAIT: 1
strategy:
matrix:
job_id:
- icebergs
- pi
- pico
- wiso-pico
- wiso
steps:
- name: Run ${{matrix.job_id}} CI Job for AWIESM
run: |
echo "Starting SLURM mini test for ${{matrix.job_id}}"
ls runscripts/CI/awiesm/ollie/${{matrix.job_id}}.yaml
esm_runscripts runscripts/CI/awiesm/ollie/${{matrix.job_id}}.yaml -e ${{matrix.job_id}} -c
# FIXME: A potential problem with SBATCH_WAIT is that since the
# jobs start each other, the "waiting" job hangs until all 3 months are finished.
esm_runscripts runscripts/CI/awiesm/ollie/${{matrix.job_id}}.yaml -e ${{matrix.job_id}}