Skip to content

Adapted configuration yamls for AGRIF #5377

Adapted configuration yamls for AGRIF

Adapted configuration yamls for AGRIF #5377

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