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 29, 2023
1 parent 395df00 commit da77fd3
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/regression_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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://[email protected]/~nawd/ecwam-bundle.git ${{ github.workspace }}/ecwam
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -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'

0 comments on commit da77fd3

Please sign in to comment.