gsw 0.2.3

TEOS-10 v3.06.12 Gibbs Seawater Oceanographic Toolbox in Rust
Documentation
name: Python tests using GSW-rs

on:
  push:
    branches: [main]
  pull_request:

jobs:
  test_py_api:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [macos-latest, ubuntu-latest]
    steps:
      - uses: actions/checkout@v4
        with:
          repository: "TEOS-10/GSW-Python"
          ref: f9b3f6e4895e9eba37e0bb509291c2046c71c5ee
          fetch-depth: 0

      - uses: actions/checkout@v4
        with:
          path: 'src/GSW-rs'
          fetch-depth: 0

      - uses: prefix-dev/setup-pixi@v0.8.1
        with:
          pixi-version: v0.34.0
          cache: true
          frozen: true
          manifest-path: src/GSW-rs/pixi.toml

      - name: Install patched GSW-Python
        run: |
          git apply src/GSW-rs/utils/gsw-py-patch
          pixi run --manifest-path src/GSW-rs/pixi.toml python -m pip install .

      - name: Run pytest
        continue-on-error: true
        run: |
          pixi run --manifest-path src/GSW-rs/pixi.toml pytest -s -rxs -v gsw/tests