From 1b5dbea12910c67e90562d1d43b617289dca24dc Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 5 Jul 2024 16:20:05 +0000 Subject: [PATCH] build: clean up __pycache__ directories --- ci/run_single_test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/run_single_test.sh b/ci/run_single_test.sh index 68e88ed98e46..be6d5f1438cf 100755 --- a/ci/run_single_test.sh +++ b/ci/run_single_test.sh @@ -57,7 +57,6 @@ case ${TEST_TYPE} in # `[Errno 28] No space left on device` # See https://github.com/googleapis/google-cloud-python/issues/12271 rm -rf docs/_build - find . | grep -E "(__pycache__)" | xargs rm -rf ;; docfx) nox -s docfx @@ -68,7 +67,6 @@ case ${TEST_TYPE} in # `[Errno 28] No space left on device` # See https://github.com/googleapis/google-cloud-python/issues/12271 rm -rf docs/_build - find . | grep -E "(__pycache__)" | xargs rm -rf ;; prerelease) nox -s prerelease_deps-3.12 @@ -105,4 +103,8 @@ case ${TEST_TYPE} in esac esac +# Clean up `__pycache__` directories to avoid error `No space left on device` +# seen when running tests in Github Actions +find . | grep -E "(__pycache__)" | xargs rm -rf + exit ${retval}