Multi-modal metric for 32-bit float translate tests #202
Workflow file for this run
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
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: Run serial-cpu 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: | | |
coverage combine | |
coverage report |