Skip to content

Commit 56e4fa9

Browse files
committed
Reenabled examples tests
1 parent 76cdc32 commit 56e4fa9

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.github/workflows/flax_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ jobs:
129129
uv pip install -U --pre jax jaxlib -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/
130130
uv run --no-sync tests/run_all_tests.sh --only-doctest
131131
elif [[ "${{ matrix.test-type }}" == "pytest" ]]; then
132-
uv pip install -U tensorflow-datasets
133132
# temporary: install jax nightly
134133
uv pip install -U --pre jax jaxlib -i https://us-python.pkg.dev/ml-oss-artifacts-published/jax/simple/
135134
uv run --no-sync tests/run_all_tests.sh --only-pytest

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ testing = [
4747
"ml-collections",
4848
"mypy",
4949
"opencv-python",
50-
# Set protobuf version for python 3.13+ to prevent error in
50+
# Set protobuf version to prevent error in
5151
# examples/mnist/train_test.py::TrainTest::test_train_and_evaluate
5252
# Failed to construct dataset "mnist", builder_kwargs "{}": Value out of range: 11594722
53-
"protobuf<6; python_version>='3.13'",
53+
"protobuf<6",
5454
"pytest",
5555
"pytest-cov",
5656
"pytest-custom_exit_code",

tests/download_dataset_metadata.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ -d "../.tfds/metadata" ]; then
1616
echo 'TFDS metadata already exists.';
1717
else
1818
echo 'TFDS metadata does not exist. Downloading...';
19-
git clone --branch v4.8.2 --depth 3 --filter=blob:none --sparse https://github.com/tensorflow/datasets/
19+
git clone --branch v4.9.9 --depth 3 --filter=blob:none --sparse https://github.com/tensorflow/datasets/
2020
cd datasets
2121
git sparse-checkout set tensorflow_datasets/testing/metadata
2222
mkdir ../../.tfds

tests/run_all_tests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ if $RUN_PYTEST; then
128128
if [[ $egd == *"_"* ]]; then
129129
continue
130130
fi
131-
# skiping examples until tfds issue is resolved
132-
# pytest $egd
131+
pytest -vvv $egd
133132
done
134133
fi
135134

0 commit comments

Comments
 (0)