Use serial ESMF in xESMF data tests #196
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
| # SPDX-FileCopyrightText: 2026 Samudra Authors | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Data Tests (with xESMF) | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| build: | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-latest"] | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: π« Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # checkout tags (which is not done by default) | |
| - name: π Create mamba environment | |
| uses: mamba-org/setup-micromamba@v1 | |
| with: | |
| environment-name: ci | |
| cache-downloads: true | |
| micromamba-version: 'latest' | |
| create-args: >- | |
| python=${{ matrix.python-version }} xesmf esmf=*=nompi_* | |
| - name: π Install ocean_preprocessing package | |
| shell: bash -l {0} | |
| run: | | |
| python -m pip install -e "./data[test]" | |
| - name: π Check current version | |
| run: python -c "import ocean_preprocessing; print(ocean_preprocessing.__version__)" | |
| - name: πββοΈ Run Tests | |
| shell: bash -l {0} | |
| run: | | |
| cd data | |
| pytest tests -v --durations=20 --durations-min=1.0 | |
| # for now I am running all tests again. We could only cover the preprocessing here to save time. |