From da77fd39d789c5007dd3b62c2b159763e5d4e06f 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 | 29 ++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/regression_tests.yml b/.github/workflows/regression_tests.yml index 6cba07d75..31891305a 100644 --- a/.github/workflows/regression_tests.yml +++ b/.github/workflows/regression_tests.yml @@ -33,6 +33,17 @@ jobs: path: cloudsc ref: develop + - name: Clone ECWAM + run: | + mkdir ${{ github.workspace }}/ecwam + mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts + cat << 'EOF' > ~/.ssh/known_hosts + ${{ secrets.BITBUCKET_HOSTKEY }} + EOF + eval `ssh-agent -s` + ssh-add - <<< '${{ secrets.ECWAM_REPOSITORY_SSH_KEY }}' + git clone --branch naan-phys-gpu ssh://git@git.ecmwf.int/~nawd/ecwam-bundle.git ${{ github.workspace }}/ecwam + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: @@ -64,11 +75,25 @@ jobs: source loki-activate pip install cmake - - name: Run CLOUDSC regression tests + - name: Install ECWAM dependencies + run: | + sudo apt-get -o Acquire::Retries=3 install -y libopenmpi-dev + source loki-activate + pip install fypp + + - name: Run CLOUDSC and ECWAM regression tests 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: | + mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts + cat << 'EOF' > ~/.ssh/known_hosts + ${{ secrets.BITBUCKET_HOSTKEY }} + EOF + 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'