Skip to content

Commit

Permalink
add numpy <2 and >=2 to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfriend committed Oct 5, 2024
1 parent 98bf22a commit f8ac00f
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,24 @@ on:

jobs:
tests:
name: Py${{ matrix.python-version }} ${{ matrix.os }}
name: Py${{ matrix.python-version }} ${{ matrix.os }} NumPy${{ matrix.numpy-version }}
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-22.04]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12']
numpy-version: ['<2', '>=2']
include:
- os: macos-latest
python-version: '3.8'
numpy-version: '<2'
- os: windows-latest
python-version: '3.8'
numpy-version: '<2'
- os: ubuntu-22.04
python-version: '3.8'
numpy-version: '<2'

steps:
- uses: actions/[email protected]
Expand All @@ -41,6 +52,10 @@ jobs:
pip install --upgrade pip setuptools wheel
pip install .[test]
- name: Install NumPy
run: |
pip install --force-reinstall "numpy${{ matrix.numpy-version }}"
- name: Tests
run: |
pip install cython
Expand Down

0 comments on commit f8ac00f

Please sign in to comment.