File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
name : Tests
2
2
3
3
on :
4
- # Trigger the workflow on push or pull request,
5
- # but only for the main branch
6
4
push :
7
5
branches :
8
- - ' **' # this matches all branches
6
+ - ' **'
9
7
pull_request :
10
8
branches :
11
9
- main
12
10
13
11
jobs :
14
12
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) || '' }}
16
14
runs-on : ${{ matrix.os }}
17
15
strategy :
18
16
matrix :
19
17
os : [ubuntu-latest, windows-latest, macos-latest]
20
18
python-version : ["3.12"]
19
+ numpy-version : [null]
20
+ include :
21
+ - os : ubuntu-latest
22
+ python-version : " 3.12"
23
+ numpy-version : " 1.26"
21
24
22
25
steps :
23
26
- uses : actions/checkout@v5
30
33
- name : Install Ninja
31
34
uses : seanmiddleditch/gha-setup-ninja@master
32
35
36
+ - name : Install specific numpy version
37
+ if : matrix.numpy-version
38
+ run : pip install "numpy==${{ matrix.numpy-version }}.*"
39
+
33
40
- name : Build
34
41
run : pip install -e .[test]
35
42
You can’t perform that action at this time.
0 commit comments