Skip to content

Commit 1801cac

Browse files
committed
Add step in CI to free disk space
1 parent 3a4618a commit 1801cac

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@ jobs:
3131
python-version: ${{ matrix.python-version }}
3232
cache: 'pip'
3333
cache-dependency-path: 'pyproject.toml'
34+
- name: Free disk space
35+
run: |
36+
set -eux
37+
sudo rm -rf /usr/share/dotnet || true
38+
sudo rm -rf /opt/ghc || true
39+
sudo rm -rf /usr/local/lib/android || true
40+
sudo apt-get clean
41+
df -h
3442
- name: Install Ollama
3543
run: |
3644
curl -fsSL https://ollama.com/install.sh | sh

.github/workflows/tests_api_models.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ jobs:
2929
cache: 'pip'
3030
cache-dependency-path: 'pyproject.toml'
3131

32+
- name: Free disk space
33+
run: |
34+
set -eux
35+
sudo rm -rf /usr/share/dotnet || true
36+
sudo rm -rf /opt/ghc || true
37+
sudo rm -rf /usr/local/lib/android || true
38+
sudo apt-get clean
39+
df -h
40+
3241
- name: Install Ollama
3342
run: |
3443
curl -fsSL https://ollama.com/install.sh | sh

0 commit comments

Comments
 (0)