Edition 2021 #497
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: 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.25.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 |