From 07b78ed7bf2a837778fd30ce630e8fbb336963b0 Mon Sep 17 00:00:00 2001 From: Ahmad Nawab Date: Fri, 28 Jul 2023 15:07:47 +0200 Subject: [PATCH] Updated github actions with ecWam regression test --- .github/workflows/regression_tests.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regression_tests.yml b/.github/workflows/regression_tests.yml index 6cba07d75..2354b9419 100644 --- a/.github/workflows/regression_tests.yml +++ b/.github/workflows/regression_tests.yml @@ -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://git@git.ecmwf.int/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: @@ -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 @@ -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'