Skip to content

Commit bf8d7a6

Browse files
committed
Add test for numpy 1.23
1 parent fcf995a commit bf8d7a6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77

88
jobs:
99
build_wheels:
10-
name: Build wheels on ${{ matrix.os }} for ${{ matrix.arch }}
10+
name: Build and test on ${{ matrix.os }}${{ matrix.numpy-version && format(' (numpy {0})', matrix.numpy-version) || '' }} for ${{ matrix.arch }}
1111
runs-on: ${{ matrix.runs-on || matrix.os }}
1212
permissions:
1313
contents: write
@@ -23,21 +23,32 @@ jobs:
2323
- os: ubuntu-latest
2424
arch: x86_64
2525
artifact_name: "linux-x86_64"
26+
numpy-version: [null]
27+
28+
# Linux x86_64 with numpy 1.23
29+
- os: ubuntu-latest
30+
arch: x86_64
31+
artifact_name: "linux-x86_64_numpy1_23"
32+
python-version: "3.12"
33+
numpy-version: "1.23"
2634

2735
# Linux ARM64 builds (native runners)
2836
- os: ubuntu-24.04-arm
2937
arch: aarch64
3038
artifact_name: "linux-aarch64"
39+
numpy-version: [null]
3140

3241
# Windows builds
3342
- os: windows-latest
3443
arch: x86_64
3544
artifact_name: "windows-x86_64"
45+
numpy-version: [null]
3646

3747
# macOS builds (universal2)
3848
- os: macos-latest
3949
arch: x86_64
4050
artifact_name: "macos-universal2"
51+
numpy-version: [null]
4152
steps:
4253
- uses: actions/checkout@v3
4354

@@ -46,6 +57,10 @@ jobs:
4657
with:
4758
python-version: '3.x'
4859

60+
- name: Install specific numpy version
61+
if: matrix.numpy-version
62+
run: pip install "numpy==${{ matrix.numpy-version }}.*"
63+
4964
- name: Build wheels
5065
uses: pypa/cibuildwheel@v3.1.3
5166

0 commit comments

Comments
 (0)