Skip to content

Commit 5d24b0c

Browse files
committed
test(ci): test on windows and osx
1 parent a9d6d74 commit 5d24b0c

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,30 @@ jobs:
1818
test:
1919
name: py=${{ matrix.python-version }}, np=${{ matrix.numpy-version }}, deps=${{ matrix.dependency-set }}
2020

21-
runs-on: ubuntu-latest
2221
strategy:
2322
matrix:
2423
python-version: ['3.11', '3.12', '3.13']
25-
numpy-version: ['1.25', '1.26', '2.0']
24+
numpy-version: ['1.25', '2']
2625
dependency-set: ["minimal", "optional"]
26+
os: ["ubuntu-latest"]
27+
include:
28+
- python-version: '3.11'
29+
numpy-version: '1.25'
30+
dependency-set: 'optional'
31+
os: 'macos-latest'
32+
- python-version: '3.13'
33+
numpy-version: '2'
34+
dependency-set: 'optional'
35+
os: 'macos-latest'
36+
- python-version: '3.11'
37+
numpy-version: '1.25'
38+
dependency-set: 'optional'
39+
os: 'windows-latest'
40+
- python-version: '3.13'
41+
numpy-version: '2'
42+
dependency-set: 'optional'
43+
os: 'windows-latest'
44+
runs-on: ${{ matrix.os }}
2745

2846
steps:
2947
- uses: actions/checkout@v4

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,17 +135,17 @@ features = ["test", "extra"]
135135

136136
[[tool.hatch.envs.test.matrix]]
137137
python = ["3.11", "3.12", "3.13"]
138-
numpy = ["1.25", "1.26", "2.0"]
138+
numpy = ["1.25", "2"]
139139
version = ["minimal"]
140140

141141
[[tool.hatch.envs.test.matrix]]
142142
python = ["3.11", "3.12", "3.13"]
143-
numpy = ["1.25", "1.26", "2.0"]
143+
numpy = ["1.25", "2"]
144144
features = ["optional"]
145145

146146
[[tool.hatch.envs.test.matrix]]
147147
python = ["3.11", "3.12", "3.13"]
148-
numpy = ["1.25", "1.26", "2.0"]
148+
numpy = ["1.25", "2"]
149149
features = ["gpu"]
150150

151151
[tool.hatch.envs.test.scripts]
@@ -166,7 +166,7 @@ features = ["test", "extra", "gpu"]
166166

167167
[[tool.hatch.envs.gputest.matrix]]
168168
python = ["3.11", "3.12", "3.13"]
169-
numpy = ["1.25", "1.26", "2.0"]
169+
numpy = ["1.25", "2"]
170170
version = ["minimal"]
171171

172172
[tool.hatch.envs.gputest.scripts]

0 commit comments

Comments
 (0)