Skip to content

Commit c4a9bff

Browse files
Merge pull request #489 from Blosc/test-numpy-1.26
Add test with numpy 1.26
2 parents bedb22f + 7080c17 commit c4a9bff

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
11
name: Tests
22

33
on:
4-
# Trigger the workflow on push or pull request,
5-
# but only for the main branch
64
push:
75
branches:
8-
- '**' # this matches all branches
6+
- '**'
97
pull_request:
108
branches:
119
- main
1210

1311
jobs:
1412
build_wheels:
15-
name: Build and test on ${{ matrix.os }}
13+
name: Build and test on ${{ matrix.os }}${{ matrix.numpy-version && format(' (numpy {0})', matrix.numpy-version) || '' }}
1614
runs-on: ${{ matrix.os }}
1715
strategy:
1816
matrix:
1917
os: [ubuntu-latest, windows-latest, macos-latest]
2018
python-version: ["3.12"]
19+
numpy-version: [null]
20+
include:
21+
- os: ubuntu-latest
22+
python-version: "3.12"
23+
numpy-version: "1.26"
2124

2225
steps:
2326
- uses: actions/checkout@v5
@@ -30,6 +33,10 @@ jobs:
3033
- name: Install Ninja
3134
uses: seanmiddleditch/gha-setup-ninja@master
3235

36+
- name: Install specific numpy version
37+
if: matrix.numpy-version
38+
run: pip install "numpy==${{ matrix.numpy-version }}.*"
39+
3340
- name: Build
3441
run: pip install -e .[test]
3542

0 commit comments

Comments
 (0)