-
Notifications
You must be signed in to change notification settings - Fork 12
104 lines (101 loc) · 4.1 KB
/
ersem.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
# This is a basic workflow to help you get started with Actions
name: ersem
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 9 * * 1'
jobs:
build-pyfabm-ersem-debian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Installing PyFABM-ERSEM dependences
run: ./github-actions/pyfabm-ersem/pyfabm-ersem-dep-debian.sh
- name: Building and installing PyFABM-ERSEM
run: |
BRANCH=${{ github.head_ref }}
./github-actions/pyfabm-ersem/pyfabm-ersem-build.sh $BRANCH
- name: Running pyfabm tutorial
run: |
python -m pip install matplotlib
python github-actions/pyfabm-ersem/pyfabm_tut.py
- name: Running pyfabm systests
run: |
python -m pip install pytest
pytest github-actions/pyfabm-ersem
build-gotm-fabm-ersem-debian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Installing GOTM-FABM-ERSEM dependences
run: ./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-dep-debian.sh
- name: Building and installing GOTM-FABM-ERSEM
run: |
BRANCH=${{ github.head_ref }}
./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-build.sh -b $BRANCH -f '-DCMAKE_Fortran_FLAGS="-fcheck=all"'
- name: Running tutorial
run: |
./github-actions/gotm-fabm-ersem/gotm-tut-config-setup.sh
sudo apt install libnetcdff-dev
python -m pip install matplotlib netCDF4
python github-actions/gotm-fabm-ersem/gotm_tut.py -p ersem-setups/L4/L4_time_daily_mean_16.06.nc
- name: Running gotm tests
run: |
python -m pip install pytest
pytest github-actions/gotm-fabm-ersem/test_state_variables.py github-actions/gotm-fabm-ersem/test_gotm.py
build-fabm0d-gotm-ersem-debian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Installing FABM0d-GOTM-ERSEM dependences
run: ./github-actions/fabm0d-gotm-ersem/fabm0d-gotm-ersem-dep-debian.sh
- name: Building and installing FABM0d-GOTM-ERSEM
run: |
BRANCH=${{ github.head_ref }}
./github-actions/fabm0d-gotm-ersem/fabm0d-gotm-ersem-build.sh -b $BRANCH -f '-DCMAKE_Fortran_FLAGS="-fcheck=all"'
- name: Running tutorial
run: |
./github-actions/fabm0d-gotm-ersem/aquarium-tut-config-setup.sh
sudo apt install libnetcdff-dev
python -m pip install matplotlib netCDF4
python github-actions/fabm0d-gotm-ersem/aquarium_tut.py -p ersem-setups/0d-aquarium/output.nc
- name: Running aquarium systests
run: |
python -m pip install pytest
pytest github-actions/fabm0d-gotm-ersem
build-gotm-profilling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Installing GOTM-FABM-ERSEM dependences
run: ./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-dep-debian.sh
- name: Building and installing GOTM-FABM-ERSEM
run: |
BRANCH=${{ github.head_ref }}
./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-build.sh -f "-DCMAKE_Fortran_FLAGS="-pg -fcheck=all"" -b $BRANCH
- name: Running config
run: |
./github-actions/gotm-fabm-ersem/gotm-profiling.sh
- name: Running gotm profilling
run: |
python -m pip install pytest pandas
pytest -s github-actions/gotm-fabm-ersem/test_profiling.py