Skip to content

Commit a2683ea

Browse files
alexfiklinducer
authored andcommitted
ci: pin jax<0.4.31 for mypy
1 parent 739f074 commit a2683ea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
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 "s/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

0 commit comments

Comments
 (0)