From c6494d8f2a445a8e392b89589d9b96a803f40f85 Mon Sep 17 00:00:00 2001 From: Paul Gierz Date: Mon, 2 Sep 2024 15:52:54 +0200 Subject: [PATCH] Ugh. Bad rebase. --- .github/workflows/vcs-test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/vcs-test.yml b/.github/workflows/vcs-test.yml index c2193af0d..2a0aa2ac5 100644 --- a/.github/workflows/vcs-test.yml +++ b/.github/workflows/vcs-test.yml @@ -41,3 +41,37 @@ jobs: whoami ls -ratl . esm_master install-dummy_model-1.0 + - name: Sanity check + run: | + ls -l /work/esm-bot/my-project/model-codes/dummy_model-1.0/bin/HelloWorld + /work/esm-bot/my-project/model-codes/dummy_model-1.0/bin/HelloWorld + + - name: Copy test runscript + run: | + cp runscripts/dummy-model/dummy-model.yaml /work/esm-bot/my-project/run-configs/ + + - name: One small run + run: | + cd /work/esm-bot/my-project/run-configs + export PATH=${HOME}/.local/bin:${PATH} + esm_runscripts dummy-model.yaml + + - name: Make model source change + run: | + sed -i s/\!// /work/esm-bot/my-project/model-codes/dummy_model-1.0/src/hello.f90 + + - name: Recompile + run: | + cd /work/esm-bot/my-project/model-codes + PATH=${HOME}/.local/bin:${PATH} + whoami + ls -ratl . + esm_master recomp-dummy_model-1.0 + + - name: One small run + run: | + cd /work/esm-bot/my-project/run-configs + export PATH=${HOME}/.local/bin:${PATH} + esm_runscripts dummy-model.yaml + + # - name: Check differences