-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (36 loc) · 1.01 KB
/
gsw-python.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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/[email protected]
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