Skip to content

Commit 2962b51

Browse files
authored
build: clean up .nox directory (googleapis#12877)
The `.nox` directory is created when `nox` is run and is more than 100MB for some packages. This PR removes the `.nox` directory after presubmit tests run to free up disk space. As an example, 1. cd to `packages/google-cloud-access-approval` 2. run `nox -s unit-3.9` 3. run `du -sh .nox` which shows the directory is 152 MB
1 parent 57e8fbb commit 2962b51

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci/run_single_test.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ case ${TEST_TYPE} in
103103
esac
104104
esac
105105

106-
# Clean up `__pycache__` directories to avoid error `No space left on device`
107-
# seen when running tests in Github Actions
106+
# Clean up `__pycache__` and `.nox` directories to avoid error
107+
# `No space left on device` seen when running tests in Github Actions
108108
find . | grep -E "(__pycache__)" | xargs rm -rf
109+
rm -rf .nox
109110

110111
exit ${retval}

0 commit comments

Comments
 (0)