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
15 changes: 10 additions & 5 deletions .github/workflows/translate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
type: string
default: ''
required: false
python_version:
type: string
default: ''
required: false
pull_request: # ... a PR is opened / updated
merge_group: # ... the PR is added to the merge queue
push:
Expand All @@ -32,21 +36,22 @@ jobs:
env:
TEST_DATA_PATH: "./test_data/8.1.3/c12_6ranks_baroclinic/physics"
TEST_DATA_URL: "https://portal.nccs.nasa.gov/datashare/astg/smt/pace-regression-data/8.1.3_c12_6ranks_baroclinic.physics.tar.gz"
python_default: '3.11'

steps:
- name: External trigger Checkout pySHiELD
if: ${{inputs.component_trigger}}
if: ${{inputs.component_name}}
uses: actions/checkout@v6
with:
submodules: 'recursive'
repository: NOAA-GFDL/PySHiELD
path: pySHiELD
ref: develop

- name: Setup Python 3.11
- name: 'Setup Python ${{ inputs.python_version && inputs.python_version || env.python_default }}'
uses: actions/setup-python@v6
with:
python-version: '3.11'
python-version: ${{ inputs.python_version && inputs.python_version || env.python_default }}

- name: Install mpi (MPICH flavor)
run: pip install mpich
Expand All @@ -59,7 +64,7 @@ jobs:
run: pip install numpy==1.26.4

- name: External trigger remove existing component in pySHiELD/develop
if: ${{ inputs.component_trigger }}
if: ${{ inputs.component_name }}
run: rm -rf ${GITHUB_WORKSPACE}/pySHiELD/${{inputs.component_name}}

- name: Checkout hash that triggered CI
Expand All @@ -84,7 +89,7 @@ jobs:
pip install .[pyfv3,test]

- name: Install pySHiELD packages
if: ${{ !inputs.component_trigger}}
if: ${{ !inputs.component_name}}
run: |
cd ${GITHUB_WORKSPACE}/pySHiELD
pip install .[ndsl,pyfv3,test]
Expand Down