update test.yaml #344
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: Install package and run pytests | |
| on: [push, pull_request] | |
| # cancel running jobs if theres a newer push | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| fmsgridtools_ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: 'recursive' | |
| - name: Step Python | |
| uses: actions/setup-python@v4.6.0 | |
| with: | |
| python-version: '3.11.7' | |
| - name: Install libraries | |
| run: | | |
| sudo apt-get install libopenmpi-dev netcdf-bin libnetcdf-dev libnetcdff-dev libyaml-dev cmake | |
| - name: Install FMSgridtools package | |
| run: pip install .[test] | |
| - name: Run pytest (just link test for now) | |
| run: | | |
| pytest tests/shared/test_libs.py | |
| pytest tests/mosaic/test_mosaic.py | |
| pytest tests/shared/test_gridobj.py::test_read_write | |
| pytest tests/shared/test_gridobj.py::test_minigrids_option | |
| pytest tests/shared/test_gridobj.py::test_to_domain | |
| #pytest tests/shared/test_xgridobj.py | |
| #pytest tests/hgrid/test_hgrid.py |