Skip to content

Use serial ESMF in xESMF data tests #196

Use serial ESMF in xESMF data tests

Use serial ESMF in xESMF data tests #196

# 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.