-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from NOAA-GFDL/develop
For release 2024.09.00
- Loading branch information
Showing
37 changed files
with
3,738 additions
and
332 deletions.
There are no files selected for viewing
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,10 @@ | ||
name: "FV3 translate tests" | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
fv3_translate_tests: | ||
uses: NOAA-GFDL/pyFV3/.github/workflows/translate.yaml@develop | ||
with: | ||
component_trigger: true | ||
component_name: NDSL |
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,11 @@ | ||
name: "Lint" | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
# cancel running jobs if theres a newer push | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
|
@@ -14,7 +18,7 @@ jobs: | |
- name: Step Python | ||
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,10 @@ | ||
name: "pace main tests" | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
pace_main_tests: | ||
uses: NOAA-GFDL/pace/.github/workflows/main_unit_tests.yaml@develop | ||
with: | ||
component_trigger: true | ||
component_name: NDSL |
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,10 @@ | ||
name: "SHiELD Translate tests" | ||
on: | ||
pull_request: | ||
|
||
jobs: | ||
shield_translate_tests: | ||
uses: NOAA-GFDL/pySHiELD/.github/workflows/translate.yaml@develop | ||
with: | ||
component_trigger: true | ||
component_name: NDSL |
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,33 +1,38 @@ | ||
name: "Unit tests" | ||
name: "NDSL unit tests" | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
|
||
# cancel running jobs if theres a newer push | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
all: | ||
ndsl_unit_tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [3.8.12, 3.11.7] | ||
container: | ||
image: ghcr.io/noaa-gfdl/miniforge:mpich | ||
steps: | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3.5.2 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install OpenMPI & Boost for gt4py | ||
run: | | ||
sudo apt-get install libopenmpi-dev libboost1.74-dev | ||
|
||
- name: Install Python packages | ||
run: pip3 install .[test] | ||
|
||
- name: prepare input eta files | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install .[test] | ||
python tests/grid/generate_eta_files.py | ||
- name: Run serial-cpu tests | ||
run: | | ||
pytest -x tests | ||
run: coverage run --rcfile=setup.cfg -m pytest -x tests | ||
|
||
- name: Run parallel-cpu tests | ||
run: mpiexec -np 6 --oversubscribe coverage run --rcfile=setup.cfg -m mpi4py -m pytest -x tests/mpi | ||
|
||
- name: Output code coverage | ||
run: | | ||
mpirun -np 6 --oversubscribe pytest -x tests/mpi | ||
coverage combine | ||
coverage report |
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.