Skip to content

Merge pull request #218 from TEOS-10/dependabot/github_actions/github… #420

Merge pull request #218 from TEOS-10/dependabot/github_actions/github…

Merge pull request #218 from TEOS-10/dependabot/github_actions/github… #420

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches: [ main ]
defaults:
run:
shell: bash
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
os: [ windows-latest, ubuntu-latest, macos-latest ]
# https://scientific-python.org/specs/spec-0000/
numpy-version: ["==1.24", ">=2"]
exclude:
- python-version: "3.12"
numpy-version: "==1.24"
fail-fast: false
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install gsw
run: >
python -m pip install -r requirements-dev.txt
&& python -m pip install -e .
&& python -m pip install numpy${{ matrix.numpy-version }}
- name: Tests
run: |
python -m pytest -s -rxs -v gsw/tests
permissions:
actions: none