[Serialbox to NetCDF] Allow variables to not be saved in non zero ranks #497
Workflow file for this run
This file contains hidden or 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
name: "NDSL unit tests" | |
on: | |
pull_request: | |
# cancel running jobs if theres a newer push | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
ndsl_unit_tests: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/noaa-gfdl/miniforge:mpich | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Install Python packages | |
run: pip3 install .[test] | |
- name: prepare input eta files | |
run: python tests/grid/generate_eta_files.py | |
- name: Run serial-cpu tests | |
run: coverage run --rcfile=setup.cfg -m pytest tests | |
- name: Run parallel-cpu tests | |
run: mpiexec -np 6 --oversubscribe coverage run --rcfile=setup.cfg -m mpi4py -m pytest tests/mpi | |
- name: Output code coverage | |
run: | | |
coverage combine | |
coverage report |