Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/build-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,24 @@ jobs:
langchain_minimal: true
continue-on-error: false # https://ncorti.com/blog/howto-github-actions-build-matrix
steps:
- name: Check disk space
run: |
df -h
- name: Free disk space
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo rm -rf /usr/local/lib/android
sudo apt update && sudo apt remove -y \
google-cloud-cli microsoft-edge-stable dotnet-sdk-* llvm-* google-chrome-stable temurin-*
sudo apt autoremove -y
sudo apt autoclean -y

- name: Check new disk space
run: |
df -h

- name: Checkout code
uses: actions/[email protected]
with:
Expand All @@ -112,11 +130,19 @@ jobs:
key: ${{ matrix.os }}-${{ matrix.python-version }}-python-test-resources-${{ hashFiles('tests/fixtures/**/*py')}}
restore-keys: ${{ matrix.os }}-${{ matrix.python-version }}-python-giskard-test-resources

- name: Check again new disk space
run: |
df -h

- name: Install dependencies
run: |
pdm install -G :all
pdm list

- name: Check yet again new disk space
run: |
df -h

- name: Re-install lightgbm from sources for MacOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
Expand Down Expand Up @@ -279,6 +305,25 @@ jobs:
name: "Build and check doc"
runs-on: ubuntu-latest
steps:
- name: Check disk space
run: |
df -h

- name: Free disk space
run: |
sudo swapoff -a
sudo rm -f /swapfile
sudo rm -rf /usr/local/lib/android
docker rmi $(docker image ls -aq)
sudo apt update && sudo apt remove -y \
google-cloud-cli microsoft-edge-stable dotnet-sdk-* llvm-* google-chrome-stable temurin-*
sudo apt autoremove -y
sudo apt autoclean -y

- name: Check new disk space
run: |
df -h

- name: Checkout code
uses: actions/[email protected]
with:
Expand All @@ -298,6 +343,10 @@ jobs:
- name: Install dependencies
run: pdm install -G :all

- name: Check new disk space
run: |
df -h

- name: Build doc
run: pdm doc

Expand Down
Loading