Skip to content

Commit cd37bc9

Browse files
author
Flax Authors
committed
Merge pull request #5081 from google:fix-main-2
PiperOrigin-RevId: 830558189
2 parents c19d4c5 + 3daf953 commit cd37bc9

File tree

4 files changed

+18
-43
lines changed

4 files changed

+18
-43
lines changed

.github/workflows/flax_test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
- name: Install standalone dependencies only
7777
run: |
7878
uv sync
79+
# temporary: install jax nightly
80+
uv pip install -U --pre jax jaxlib -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/
7981
- name: Test importing Flax
8082
run: |
8183
uv run python -c "import flax"
@@ -109,6 +111,7 @@ jobs:
109111

110112
- name: Install dependencies
111113
run: |
114+
rm -fr .venv
112115
uv sync --extra testing --extra docs
113116
- name: Install JAX
114117
run: |
@@ -122,13 +125,21 @@ jobs:
122125
if [[ "${{ matrix.test-type }}" == "doctest" ]]; then
123126
# TODO(cgarciae): Remove this once dm-haiku 0.0.14 is released
124127
uv pip install -U git+https://github.com/google-deepmind/dm-haiku.git
128+
# temporary: install jax nightly
129+
uv pip install -U --pre jax jaxlib -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/
125130
uv run tests/run_all_tests.sh --only-doctest
126131
elif [[ "${{ matrix.test-type }}" == "pytest" ]]; then
127132
uv pip install -U tensorflow-datasets
133+
# temporary: install jax nightly
134+
uv pip install -U --pre jax jaxlib -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/
128135
uv run tests/run_all_tests.sh --only-pytest
129136
elif [[ "${{ matrix.test-type }}" == "pytype" ]]; then
137+
# temporary: install jax nightly
138+
uv pip install -U --pre jax jaxlib -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/
130139
uv run tests/run_all_tests.sh --only-pytype
131140
elif [[ "${{ matrix.test-type }}" == "mypy" ]]; then
141+
# temporary: install jax nightly
142+
uv pip install -U --pre jax jaxlib -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/
132143
uv run tests/run_all_tests.sh --only-mypy
133144
else
134145
echo "Unknown test type: ${{ matrix.test-type }}"

.readthedocs.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1 @@
1-
# .readthedocs.yml
2-
# Read the Docs configuration file
3-
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4-
5-
# Required
6-
version: 2
7-
8-
build:
9-
os: ubuntu-22.04
10-
tools:
11-
python: "3.11"
12-
13-
# Build documentation in the docs_nnx/ directory with Sphinx
14-
sphinx:
15-
configuration: docs_nnx/conf.py
16-
17-
# Optionally build your docs in additional formats such as PDF and ePub
18-
formats:
19-
- htmlzip
20-
- epub
21-
# - pdf
22-
23-
# Optionally set the version of Python and requirements required to build your docs
24-
python:
25-
install:
26-
- method: pip
27-
path: .
28-
extra_requirements:
29-
- all
30-
- testing
31-
- docs
1+
# deprecated

docs/.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.11"
11+
python: "3.12"
1212

1313
# Build documentation in the docs/ directory with Sphinx
1414
sphinx:

docs_nnx/.readthedocs.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ version: 2
88
build:
99
os: ubuntu-22.04
1010
tools:
11-
python: "3.11"
11+
python: "3.12"
12+
jobs:
13+
pre_build:
14+
- pip install ".[all, testing, docs]"
15+
- pip install -U --pre jax jaxlib -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/
1216

1317
# Build documentation in the docs/ directory with Sphinx
1418
sphinx:
@@ -19,13 +23,3 @@ formats:
1923
- htmlzip
2024
- epub
2125
# - pdf
22-
23-
# Optionally set the version of Python and requirements required to build your docs
24-
python:
25-
install:
26-
- method: pip
27-
path: .
28-
extra_requirements:
29-
- all
30-
- testing
31-
- docs

0 commit comments

Comments
 (0)