Skip to content

Commit 622d409

Browse files
committed
Clean up venv after each session to free up space
1 parent 91208d1 commit 622d409

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

noxfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ def _cleanup(session: nox.Session) -> None:
6565
shutil.rmtree(venv_dir, ignore_errors=True)
6666
session.log(f"Cleaned up {venv_dir}")
6767
shutil.rmtree(pathlib.Path("~/.cache").expanduser(), ignore_errors=True)
68-
session.run("uv", "cache", "clean", external=True)
68+
# Clean GitHub Actions temp cache
69+
gha_temp = pathlib.Path("/home/runner/work/_temp/setup-uv-cache")
70+
if gha_temp.exists():
71+
shutil.rmtree(gha_temp, ignore_errors=True)
72+
session.log(f"Cleaned GitHub Actions uv temp cache at {gha_temp}")
6973

7074

7175
def _run_tests(

0 commit comments

Comments
 (0)