-
Notifications
You must be signed in to change notification settings - Fork 49
80 lines (60 loc) · 1.77 KB
/
fesom2.1.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
name: FESOM2 main test
# Controls when the action will run. Triggers the workflow on push or pull request.
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
general_test:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
container: koldunovn/fesom2_test:refactoring2
# Service containers to run with `gfortran_ubuntu`
steps:
# NK: this changes working directory to fesom2
- uses: actions/checkout@v2
- name: Compile model (binary)
run: |
bash -l configure.sh ubuntu
- name: Compile model (library)
run: |
bash ./test/ifs_interface/configure_lib.sh -l
- name: Library exists
run: |
bash ./test/ifs_interface/check_exist.sh
- name: Create global test run
run: |
mkrun pi test_pi -m docker
- name: FESOM2 global test run
run: |
cd work_pi
chmod +x job_docker_new
./job_docker_new
- name: Check global results
run: |
cd work_pi
fcheck .
- name: Check restarts
run: |
cd work_pi
./job_docker_new
- name: Create channel test run
run: |
mkrun souf test_souf -m docker
- name: FESOM2 channel test run
run: |
cd work_souf
chmod +x job_docker_new
./job_docker_new
- name: Check channel results
run: |
cd work_souf
fcheck .
- name: Check partitioner compilation
run: |
cd mesh_part
bash -l configure.sh ubuntu
- name: Run partitioner
run: |
cd work_pi
cp ../bin/fesom_ini.x .
./fesom_ini.x