Skip to content

Commit 0a30c68

Browse files
authored
ci: free up resources in docs build (#12273)
Fixes #12271 🦕
1 parent d72e64c commit 0a30c68

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ci/run_single_test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ case ${TEST_TYPE} in
5050
;;
5151
docs)
5252
nox -s docs
53+
# Clean up built docs and python cache after the build process to avoid
54+
# `[Errno 28] No space left on device`
55+
# See https://github.com/googleapis/google-cloud-python/issues/12271
56+
rm -rf docs/_build
57+
find . | grep -E "(__pycache__)" | xargs rm -rf
5358
retval=$?
5459
;;
5560
docfx)

0 commit comments

Comments
 (0)