Skip to content

Commit a8d540b

Browse files
committed
Merge branch 'main' into lazy-class-methods
2 parents 4952d79 + b6518f3 commit a8d540b

7 files changed

Lines changed: 24 additions & 31 deletions

File tree

.github/workflows/cd.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
dist:
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
20+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2121
with:
2222
fetch-depth: 0
2323

@@ -34,13 +34,13 @@ jobs:
3434
if: github.event_name == 'release' && github.event.action == 'published'
3535

3636
steps:
37-
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
37+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
3838
with:
3939
name: Packages
4040
path: dist
4141

4242
- name: Generate artifact attestation for sdist and wheel
43-
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
43+
uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0
4444
with:
4545
subject-path: "dist/*"
4646

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
name: Lint
2525
runs-on: ubuntu-latest
2626
steps:
27-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
27+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2828
with:
2929
fetch-depth: 0
3030

@@ -53,7 +53,7 @@ jobs:
5353
runs-on: [ubuntu-latest]
5454

5555
steps:
56-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
56+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5757
with:
5858
fetch-depth: 0
5959

@@ -74,6 +74,6 @@ jobs:
7474

7575
- name: Upload coverage report
7676
if: ${{ matrix.environment != 'tests-nogil' }}
77-
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
77+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
7878
with:
7979
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/docs-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
docs-build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
12+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1313

1414
- uses: prefix-dev/setup-pixi@82d477f15f3a381dbcc8adc1206ce643fe110fb7 # v0.9.3
1515
with:
@@ -21,7 +21,7 @@ jobs:
2121
run: pixi run -e docs docs
2222

2323
- name: Upload Artifact
24-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
24+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
2525
with:
2626
name: docs-build
2727
path: docs/build/

.github/workflows/docs-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
environment:
1818
name: docs-deploy
1919
steps:
20-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
20+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2121

2222
- name: Download Artifact
2323
uses: dawidd6/action-download-artifact@ac66b43f0e6a346234dd65d4d0c8fbb31cb316e5 # v11
@@ -30,7 +30,7 @@ jobs:
3030
# See
3131
# https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-
3232
- name: Deploy
33-
uses: JamesIves/github-pages-deploy-action@4a3abc783e1a24aeb44c16e869ad83caf6b4cc23 # v4.7.4
33+
uses: JamesIves/github-pages-deploy-action@9d877eea73427180ae43cf98e8914934fe157a1a # v4.7.6
3434
with:
3535
folder: docs/build/
3636
ssh-key: ${{ secrets.DEPLOY_KEY }}

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ numpydoc = ">=1.10.0,<2"
6161
# import dependencies for mypy:
6262
array-api-strict = ">=2.4.1,<2.5"
6363
numpy = ">=2.1.3"
64-
hypothesis = ">=6.148.2"
64+
hypothesis = ">=6.148.7"
6565
dask-core = ">=2025.12.0" # No distributed, tornado, etc.
6666
dprint = ">=0.50.0,<0.51"
6767
lefthook = ">=2.0.12,<3"
@@ -94,7 +94,7 @@ lint = { cmd = "lefthook run pre-commit --all-files --force", description = "Run
9494
[tool.pixi.feature.tests.dependencies]
9595
pytest = ">=9.0.2"
9696
pytest-cov = ">=7.0.0"
97-
hypothesis = ">=6.148.2"
97+
hypothesis = ">=6.148.7"
9898
array-api-strict = ">=2.4.1,<2.5"
9999
numpy = ">=1.22.0"
100100

@@ -153,15 +153,13 @@ dask-core = ">=2025.12.0" # No distributed, tornado, etc.
153153
sparse = ">=0.17.0"
154154

155155
[tool.pixi.feature.backends.target.linux-64.dependencies]
156-
# On CPU use >=0.7.0
157-
# On GPU, use 0.6.0 (0.6.2 and 0.7.0 both segfault); see jaxlib pin below.
158-
jax = ">=0.6.0"
156+
jax = ">=0.7.2"
159157

160158
[tool.pixi.feature.backends.target.osx-64.dependencies]
161-
jax = ">=0.6.0"
159+
jax = ">=0.7.2"
162160

163161
[tool.pixi.feature.backends.target.osx-arm64.dependencies]
164-
jax = ">=0.6.0"
162+
jax = ">=0.7.2"
165163

166164
[tool.pixi.feature.backends.target.win-64.dependencies]
167165
# jax = "*" # unavailable
@@ -175,30 +173,24 @@ jax = ">=0.6.0"
175173
[tool.pixi.feature.cuda-backends]
176174
system-requirements = { cuda = "12" }
177175

178-
[tool.pixi.feature.cuda-backends.target.linux-64.dependencies]
176+
[tool.pixi.feature.cuda-backends.target.linux.dependencies]
179177
cupy = ">=13.6.0"
180-
# JAX 0.6.2 and 0.7.0 segfault on CUDA
181-
jaxlib = { version = ">=0.6.0,!=0.6.2,!=0.7.0", build = "cuda12*" }
178+
jaxlib = { version = ">=0.7.2", build = "cuda12*" }
182179
pytorch = { version = ">=2.9.1", build = "cuda12*" }
183180

184-
[tool.pixi.feature.cuda-backends.target.osx-64.dependencies]
181+
[tool.pixi.feature.cuda-backends.target.osx.dependencies]
185182
# cupy = "*" # unavailable
186183
# jaxlib = { version = "*", build = "cuda12*" } # unavailable
187184
# pytorch = { version = "*", build = "cuda12*" } # unavailable
188185

189-
[tool.pixi.feature.cuda-backends.target.osx-arm64.dependencies]
190-
# cupy = "*" # unavailable
191-
# jaxlib = { version = "*", build = "cuda12*" } # unavailable
192-
# pytorch = { version = "*", build = "cuda12*" } # unavailable
193-
194-
[tool.pixi.feature.cuda-backends.target.win-64.dependencies]
186+
[tool.pixi.feature.cuda-backends.target.win.dependencies]
195187
cupy = ">=13.6.0"
196188
# jaxlib = { version = "*", build = "cuda12*" } # unavailable
197189
pytorch = { version = ">=2.9.1", build = "cuda12*" }
198190

199191
[tool.pixi.feature.nogil.dependencies]
200192
python-freethreading = "~=3.13.0"
201-
pytest-run-parallel = ">=0.8.0"
193+
pytest-run-parallel = ">=0.8.1"
202194
numpy = ">=2.3.5"
203195
# pytorch = "*" # Not available on Python 3.13t yet
204196
dask-core = ">=2025.12.0" # No distributed, tornado, etc.

tests/test_funcs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ def test_complex(self, xp: ModuleType):
521521
expect = xp.asarray([[1.0, -1.0j], [1.0j, 1.0]], dtype=xp.complex128)
522522
xp_assert_close(actual, expect)
523523

524+
@pytest.mark.xfail_xp_backend(Backend.JAX_GPU, reason="jax#32296")
524525
@pytest.mark.xfail_xp_backend(Backend.JAX, reason="jax#32296")
525526
@pytest.mark.xfail_xp_backend(Backend.SPARSE, reason="sparse#877")
526527
def test_empty(self, xp: ModuleType):
@@ -989,14 +990,14 @@ def test_device(self, xp: ModuleType, device: Device, equal_nan: bool):
989990
assert get_device(res) == device
990991

991992
def test_array_on_device_with_scalar(self, xp: ModuleType, device: Device):
992-
a = xp.asarray([0.01, 0.5, 0.8, 0.9, 1.00001], device=device)
993+
a = xp.asarray([0.01, 0.5, 0.8, 0.9, 1.00001], device=device, dtype=xp.float64)
993994
b = 1
994995
res = isclose(a, b)
995996
assert get_device(res) == device
996997
xp_assert_equal(res, xp.asarray([False, False, False, False, True]))
997998

998999
a = 0.1
999-
b = xp.asarray([0.01, 0.5, 0.8, 0.9, 0.100001], device=device)
1000+
b = xp.asarray([0.01, 0.5, 0.8, 0.9, 0.100001], device=device, dtype=xp.float64)
10001001
res = isclose(a, b)
10011002
assert get_device(res) == device
10021003
xp_assert_equal(res, xp.asarray([False, False, False, False, True]))

0 commit comments

Comments
 (0)