@@ -101,6 +101,7 @@ jobs:
101101 # dpkg-query --show --showformat='${Installed-Size}\t${Package}\n' | sort -rh | head -25 | awk '{print $1/1024, $2}'
102102 # apt list --installed | wc -l
103103 - name : Free disk space
104+ if : ${{ matrix.os == 'ubuntu-latest' }}
104105 run : |
105106 sudo swapoff -a
106107 sudo rm -f /swapfile
@@ -138,11 +139,19 @@ jobs:
138139 key : ${{ matrix.os }}-${{ matrix.python-version }}-python-test-resources-${{ hashFiles('tests/fixtures/**/*py')}}
139140 restore-keys : ${{ matrix.os }}-${{ matrix.python-version }}-python-giskard-test-resources
140141
142+ - name : Check again new disk space
143+ run : |
144+ df -h
145+
141146 - name : Install dependencies
142147 run : |
143148 pdm install -G :all
144149 pdm list
145150
151+ - name : Check yet again new disk space
152+ run : |
153+ df -h
154+
146155 - name : Re-install lightgbm from sources for MacOS
147156 if : ${{ matrix.os == 'macos-latest' }}
148157 run : |
@@ -305,6 +314,28 @@ jobs:
305314 name : " Build and check doc"
306315 runs-on : ubuntu-latest
307316 steps :
317+ - name : Check disk space
318+ run : |
319+ df -h
320+ # - name: List installed packages
321+ # run: |
322+ # dpkg-query --show --showformat='${Installed-Size}\t${Package}\n' | sort -rh | head -25 | awk '{print $1/1024, $2}'
323+ # apt list --installed | wc -l
324+ - name : Free disk space
325+ run : |
326+ sudo swapoff -a
327+ sudo rm -f /swapfile
328+ sudo rm -rf /usr/local/lib/android
329+ docker rmi $(docker image ls -aq)
330+ sudo apt update && sudo apt remove -y \
331+ google-cloud-cli microsoft-edge-stable dotnet-sdk-* llvm-* google-chrome-stable temurin-*
332+ sudo apt autoremove -y
333+ sudo apt autoclean -y
334+
335+ - name : Check new disk space
336+ run : |
337+ df -h
338+
308339 - name : Checkout code
309340 uses : actions/checkout@v4.1.0
310341 with :
@@ -324,6 +355,10 @@ jobs:
324355 - name : Install dependencies
325356 run : pdm install -G :all
326357
358+ - name : Check new disk space
359+ run : |
360+ df -h
361+
327362 - name : Build doc
328363 run : pdm doc
329364
0 commit comments