-
Notifications
You must be signed in to change notification settings - Fork 12
62 lines (48 loc) · 1.45 KB
/
esm_tools_actions.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
name: esm-tools main test
# Controls when the action will run. Triggers the workflow on push or pull request.
on: [push, pull_request]
jobs:
basic_tests:
# Containers must run in Linux based operating systems
runs-on: ubuntu-latest
# Docker Hub image that `container-job` executes in
env:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
container:
image: koldunovn/esm_test:latest
options: --hostname ollie1
# Service containers to run with `gfortran_ubuntu`
steps:
# NK: this changes working directory to fesom2
- uses: actions/checkout@v2
- name: add to the path
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: install esm-tools
run: |
./install.sh
- name: Run Pytest
run: |
pip install pytest
pytest -v .
# For now, only test actual source code. Stuff like coupling scripts is ignored
pytest -v --doctest-modules src --ignore src/esm_runscripts/coupling --ignore-glob "*backup*"
- name: run esm_master first time
run: |
yes Y | esm_master
- name: run esm_master second time
run: |
esm_master
- name: run esm_plugins
run: |
esm_plugins
- name: run get-fesom-2.0
run: |
esm_master get-fesom-2.0
- name: run status-fesom-2.0
run: |
esm_master status-fesom-2.0
- name: run clean-fesom-2.0
run: |
esm_master clean-fesom-2.0