Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/main_unit_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
default: ''
required: false
pull_request:
push:

# cancel running jobs if theres a newer push
concurrency:
Expand All @@ -20,8 +21,6 @@ concurrency:
jobs:
pace_main_unit_tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/noaa-gfdl/miniforge:mpich
steps:
- name: "External trigger: Checkout pace/develop"
if: ${{ inputs.component_trigger }}
Expand All @@ -32,6 +31,14 @@ jobs:
path: pace
ref: develop

- name: Setup Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install mpi (MPICH flavor)
run: pip install mpich

- name: "External trigger: Remove existing component in pace/develop"
if: ${{ inputs.component_trigger }}
run: rm -rf ${GITHUB_WORKSPACE}/pace/${{inputs.component_name}}
Expand Down Expand Up @@ -67,4 +74,4 @@ jobs:
- name: Run baroclinic test case
run: |
cd ${GITHUB_WORKSPACE}/pace
mpiexec -np 6 --oversubscribe python -m pace.run examples/configs/baroclinic_c48_no_out.yaml
mpiexec -np 6 python -m pace.run examples/configs/baroclinic_c48_no_out.yaml