Skip to content

Commit

Permalink
Updated github actions with ecWam regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
awnawab committed Jul 28, 2023
1 parent 395df00 commit 07b78ed
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/regression_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ jobs:
path: cloudsc
ref: develop

- name: Clone ECWAM
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.ECWAM_REPOSITORY_SSH_KEY }}'
cat '${{ secrets.ECWAM_REPOSITORY_SSH_KEY }}'
git clone --branch naan-get-host-data-norarg ssh://[email protected]/rdx/field_api.git ${{ github.workspace }}/ecwam
cd ${{ github.workspace }}/ecwam
git branch
# git clone --branch naan-phys-gpu https://git.ecmwf.int/scm/~nawd/ecwam-bundle.git

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand All @@ -55,6 +65,10 @@ jobs:
run:
sudo apt-get -o Acquire::Retries=3 install -y libhdf5-dev

- name: Install ECWAM dependencies
run:
sudo apt-get -o Acquire::Retries=3 install -y libopenmpi-dev

- name: Install Loki
run: |
./install --with-claw --with-ofp --with-tests --without-dace
Expand All @@ -68,7 +82,11 @@ jobs:
env:
CLOUDSC_DIR: ${{ github.workspace }}/cloudsc
CLOUDSC_ARCH: ${{ github.workspace }}/cloudsc/arch/github/ubuntu/gnu/9.4.0
ECWAM_DIR: ${{ github.workspace }}/ecwam
ECWAM_ARCH: ${{ github.workspace }}/ecwam/arch/github/ubuntu/gnu/9.4.0
OMP_STACKSIZE: 4G
run: |
eval `ssh-agent -s`
ssh-add - <<< '${{ secrets.ECWAM_REPOSITORY_SSH_KEY }}'
source loki-activate
pytest --cov=transformations/transformations transformations/tests -k cloudsc
pytest --cov=transformations/transformations transformations/tests -k 'cloudsc or ecwam'

0 comments on commit 07b78ed

Please sign in to comment.