From 7080c176ebc7d953dc7d1a7e28fb51852d87db55 Mon Sep 17 00:00:00 2001 From: Francesc Alted Date: Tue, 30 Sep 2025 09:01:31 +0200 Subject: [PATCH] Add test with numpy 1.26 --- .github/workflows/build.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b9edeac..10f25a1f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,23 +1,26 @@ name: Tests on: - # Trigger the workflow on push or pull request, - # but only for the main branch push: branches: - - '**' # this matches all branches + - '**' pull_request: branches: - main jobs: build_wheels: - name: Build and test on ${{ matrix.os }} + name: Build and test on ${{ matrix.os }}${{ matrix.numpy-version && format(' (numpy {0})', matrix.numpy-version) || '' }} runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] python-version: ["3.12"] + numpy-version: [null] + include: + - os: ubuntu-latest + python-version: "3.12" + numpy-version: "1.26" steps: - uses: actions/checkout@v5 @@ -30,6 +33,10 @@ jobs: - name: Install Ninja uses: seanmiddleditch/gha-setup-ninja@master + - name: Install specific numpy version + if: matrix.numpy-version + run: pip install "numpy==${{ matrix.numpy-version }}.*" + - name: Build run: pip install -e .[test]