Skip to content

Commit d783a30

Browse files
authored
Add disk space cleanup and use --no-cache-dir for pip installs. Following DeepLabCut/DeepLabCut#3180 (#153)
1 parent 99f777c commit d783a30

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/testing.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ jobs:
2828
python-version: "3.12"
2929

3030
steps:
31+
- name: Free up disk space
32+
if: runner.os == 'Linux'
33+
run: |
34+
echo "Disk space before cleanup:"
35+
df -h
36+
# Remove unnecessary software to free up disk space
37+
sudo rm -rf /usr/share/dotnet
38+
sudo rm -rf /usr/local/lib/android
39+
sudo rm -rf /opt/ghc
40+
sudo rm -rf /opt/hostedtoolcache/CodeQL
41+
sudo docker image prune --all --force
42+
echo "Disk space after cleanup:"
43+
df -h
44+
3145
- name: Checkout code
3246
uses: actions/checkout@v4
3347

@@ -39,7 +53,7 @@ jobs:
3953
python-version: ${{ matrix.python-version }}
4054

4155
- name: Install the project
42-
run: uv sync --all-extras --dev
56+
run: uv sync --no-cache --all-extras --dev
4357
shell: bash
4458

4559
- name: Install ffmpeg

0 commit comments

Comments
 (0)