From a81135a8cd289ce90b6f6f8748648a131dfef775 Mon Sep 17 00:00:00 2001 From: Jaap de Ruyter Date: Fri, 23 Jan 2026 15:55:47 +0100 Subject: [PATCH] Add disk space cleanup and use --no-cache-dir for pip installs. Following https://github.com/DeepLabCut/DeepLabCut/pull/3180 --- .github/workflows/testing.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 6e5a2a4..242ec58 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -28,6 +28,20 @@ jobs: python-version: "3.12" steps: + - name: Free up disk space + if: runner.os == 'Linux' + run: | + echo "Disk space before cleanup:" + df -h + # Remove unnecessary software to free up disk space + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/ghc + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo docker image prune --all --force + echo "Disk space after cleanup:" + df -h + - name: Checkout code uses: actions/checkout@v4 @@ -39,7 +53,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install the project - run: uv sync --all-extras --dev + run: uv sync --no-cache --all-extras --dev shell: bash - name: Install ffmpeg