diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8075b013b..b8fddc244 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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/checkout@v4.1.1 @@ -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