-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Benchmark branch to use NDSL v2024.09.00 (#96)
* working baroclinic test case example (#81) * fixing dockerfile overriding netcdf, mpi4py, and numpy versions with mutually incompatible versions (#84) * Update notebooks for eta file creations (#85) * Update pace to use python 3.11.9 (#82) * Updated container for Github Action and reusable workflow (#87) * Updated container for Github Action and reusable workflow - Redo (#89) * Matching packages between main and develop branches and removal of outdated pull request template (#86) * Changed workflows to use python 3.11.7, added pytest-subtests to requirments_dev.txt * Updating constraints file * Updating Dockerfile to use 3.11-slim-bookworm base python image * reusable workflow CI - checkout corrrect repository (#90) * pace/tests/main/grid/test_eta.py moved to NDSL/tests/grid/test_eta.py (#92) * Updated README to include directions for generating eta files (#99) * Updated submodules to most recent versions as of 3 Jan 2025 15:35 EST * Updated c5 build script to match new methods --------- Co-authored-by: Oliver Elbert <[email protected]> Co-authored-by: MiKyung Lee <[email protected]> Co-authored-by: mlee03 <[email protected]> Co-authored-by: Xingqiu Yuan <[email protected]>
- Loading branch information
1 parent
80b4695
commit c64fa64
Showing
28 changed files
with
1,431 additions
and
740 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: "Lint" | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
jobs: | ||
lint: | ||
|
@@ -11,10 +10,10 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
submodules: 'recursive' | ||
- name: Step Python 3.8.12 | ||
- name: Step Python 3.11.7 | ||
uses: actions/[email protected] | ||
with: | ||
python-version: '3.8.12' | ||
python-version: '3.11.7' | ||
- name: Install OpenMPI for gt4py | ||
run: | | ||
sudo apt-get install libopenmpi-dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: "pace main unit tests" | ||
on: | ||
workflow_call: | ||
inputs: | ||
component_trigger: | ||
type: boolean | ||
default: false | ||
required: false | ||
component_name: | ||
type: string | ||
default: '' | ||
required: false | ||
pull_request: | ||
|
||
# cancel running jobs if theres a newer push | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
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 }} | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
repository: NOAA-GFDL/pace | ||
path: pace | ||
ref: develop | ||
|
||
- name: external trigger Remove existing component in pace/develop | ||
if: ${{ inputs.component_trigger }} | ||
run: rm -rf ${GITHUB_WORKSPACE}/pace/${{inputs.component_name}} | ||
|
||
- name: Checkout out hash that triggered CI | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
path: pace/${{inputs.component_name}} | ||
|
||
- name: install packages | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/pace | ||
pip3 install --upgrade pip setuptools wheel | ||
pip3 install -r requirements_dev.txt -c constraints.txt | ||
- name: prepare input files | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/pace | ||
mkdir tests/main/input | ||
python3 examples/generate_eta_files.py | ||
mv *eta*.nc tests/main/input | ||
- name: run tests | ||
run: | | ||
cd ${GITHUB_WORKSPACE}/pace | ||
pytest -x tests/main |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule NDSL
updated
43 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.