fix: numpy2 C api #40
Workflow file for this run
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: Run tests | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
jobs: | |
test: | |
name: test py==${{ matrix.python-version }} - numpy==${{ 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: ["1.26", "2.1"] | |
exclude: | |
- os: macos-latest | |
python-version: "3.7" | |
- python-version: "3.7" | |
numpy-version: "2.1" | |
- python-version: "3.8" | |
numpy-version: "2.1" | |
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 }} | |
env: | |
NUMPY_VERSION: ${{ matrix.numpy-version }} # Pass numpy version to tox | |
run: | | |
tox -e py |