Skip to content

Commit b3635c7

Browse files
committed
ci: pin jax<0.4.31 for mypy
1 parent 739f074 commit b3635c7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,16 @@ jobs:
4343
runs-on: ubuntu-latest
4444
steps:
4545
- uses: actions/checkout@v4
46-
-
47-
uses: actions/setup-python@v5
48-
with:
49-
python-version: '3.x'
5046
- name: "Main Script"
5147
run: |
5248
curl -L -O https://tiker.net/ci-support-v0
5349
. ./ci-support-v0
50+
51+
# NOTE: jax>=0.4.31 requires python 3.10 and uses pattern matching
52+
# which conflicts with our mypy.python_version = '3.8' setting
53+
CONDA_ENVIRONMENT=.test-conda-env-py3.yml
54+
sed -i "/jax/jax<0.4.31/" "$CONDA_ENVIRONMENT"
55+
5456
build_py_project_in_conda_env
5557
python -m pip install mypy pytest
5658
./run-mypy.sh

.test-conda-env-py3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ dependencies:
1414
- pyopencl
1515
- islpy
1616
- pip
17-
- jax
17+
- jax<0.4.31

0 commit comments

Comments
 (0)