Skip to content

fix: numpy2 C api

fix: numpy2 C api #37

Workflow file for this run

name: Run tests
on:
push:
branches:
- master
- main
pull_request:
jobs:
test:
name: test ${{ matrix.python-version }} - ${{ matrix.numpy-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
numpy-version: ["<2", ">=2"]
exclude:
- os: macos-latest
python-version: "3.7"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox and dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Run tests with numpy ${{ matrix.numpy-version }}
run: |
TOX_ENV=numpy${{ matrix.numpy-version }} tox -e py