Skip to content

Commit da97848

Browse files
Moved jaxlib test dependency into CI scripts, so that the dev group doesn't assume the CPU.
1 parent e00f029 commit da97848

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
cp -r ${{ github.workspace }}/tests ./tests
1818
cp -r ${{ github.workspace }}/examples ./examples
1919
cp ${{ github.workspace }}/pyproject.toml ./pyproject.toml
20-
uv sync --extra dev --no-install-project --inexact
20+
uv sync --extra dev --with 'jax[cpu]' --no-install-project --inexact
2121
uv run --no-sync pytest
2222
pypi-token: ${{ secrets.pypi_token }}
2323
github-user: patrick-kidger

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Install dependencies
4545
run: |
4646
python -m pip install --upgrade pip
47-
python -m pip install '.[dev]'
47+
python -m pip install '.[dev]' 'jax[cpu]'
4848
4949
- name: Test with pytest
5050
run: |

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ dependencies = [
3434
dev = [
3535
"pre-commit>=4.1.0",
3636
"beartype>=0.20.2",
37-
"jax[cpu]",
3837
"pytest>=8.3.5",
3938
"pytest-env>=1.1.5",
4039
]

0 commit comments

Comments
 (0)