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 @@ -29,18 +33,19 @@ jobs:
env:
DATA_PATH: ./test_data/8.1.3/c12_6ranks_standard/dycore
DATA_URL: "https://portal.nccs.nasa.gov/datashare/astg/smt/pace-regression-data/8.1.3_c12_6ranks_standard.tar.gz"
python_default: '3.11'

steps:
- 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: pip3 install mpich

- name: External trigger Checkout pyFV3
if: ${{inputs.component_trigger}}
if: ${{inputs.component_name}}
uses: actions/checkout@v6
with:
submodules: 'recursive'
Expand All @@ -54,14 +59,14 @@ jobs:
path: pyFV3/${{inputs.component_name}}

- name: External trigger install NDSL packages
if: ${{inputs.component_trigger}}
if: ${{inputs.component_name}}
run: |
cd ${GITHUB_WORKSPACE}/pyFV3
cd NDSL && pip3 install . && cd ../
pip3 install .[test]

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