From d6542139d8c1705859074526a1b83edc52269cc6 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Tue, 10 Dec 2024 02:39:21 -0800 Subject: [PATCH] Fix CI by keeping WORKSPACE enabled for now (CI is broken since the release https://github.com/bazelbuild/bazel/releases/tag/8.0.0) Also bump the version of rules_python PiperOrigin-RevId: 704624004 --- README.md | 2 +- ci/run_tests.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6ff192b5..d9eda613 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ To run Abseil tests, you can clone the git repo and run ```bash git clone https://github.com/abseil/abseil-py.git cd abseil-py -bazel test absl/... +bazel test --enable_workspace absl/... ``` Please also validate the type annotations against the latest mypy: diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 99de7cd7..7c8e473f 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -12,9 +12,9 @@ exit_code=0 # Log the bazel version for easier debugging. bazel version -bazel test --test_output=errors absl/... || exit_code=$? +bazel test --enable_workspace --test_output=errors absl/... || exit_code=$? if [[ ! -z "${ABSL_EXPECTED_PYTHON_VERSION}" ]]; then - bazel test \ + bazel test --enable_workspace \ --test_output=errors absl:tests/python_version_test \ --test_arg=--expected_version="${ABSL_EXPECTED_PYTHON_VERSION}" || exit_code=$? fi