Skip to content
Merged
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
71 changes: 67 additions & 4 deletions .github/workflows/install-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,22 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Check disk space before cleanup
run: df -h

- name: Free up disk space
run: |
# Remove unnecessary files on macOS
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /usr/local/.ghcup || true
sudo rm -rf /usr/local/lib/node_modules || true
brew cleanup || true
# Clear pip cache
pip cache purge || true

- name: Check disk space after cleanup
run: df -h

- uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python }}"
Expand All @@ -45,6 +61,9 @@ jobs:
pip install --no-cache-dir ".[all]"
fi

- name: Check disk space after installation
run: df -h

- name: Run import checks
run: |
# Run import checks
Expand All @@ -64,6 +83,25 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Check disk space before cleanup
run: df -h

- name: Free up disk space
run: |
# Remove unnecessary packages and files on Ubuntu
sudo apt-get clean
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /opt/ghc || true
sudo rm -rf /usr/local/.ghcup || true
sudo rm -rf /usr/share/dotnet || true
sudo rm -rf /opt/az || true
# Clear pip and npm caches
pip cache purge || true
sudo npm cache clean --force || true

- name: Check disk space after cleanup
run: df -h

- name: Install Python
uses: actions/setup-python@v5
with:
Expand All @@ -74,14 +112,17 @@ jobs:
INSTALLER: ${{ matrix.installer }}
run: |
if [ "$INSTALLER" = "pip-install" ]; then
pip install --upgrade pip
pip install ".[all]"
pip install --no-cache-dir --upgrade pip
pip install --no-cache-dir ".[all]"
else
export INSTALL_DIR=$(pwd)
bash docker/common/install_dep.sh --library "te,mcore,extra" --mode install
pip install --no-cache-dir ".[all]"
fi

- name: Check disk space after installation
run: df -h

- name: Run import checks
run: |
# Run import checks
Expand All @@ -101,6 +142,25 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Check disk space before cleanup
run: df -h

- name: Free up disk space
run: |
# Remove unnecessary packages and files on Ubuntu ARM
sudo apt-get clean
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /opt/ghc || true
sudo rm -rf /usr/local/.ghcup || true
sudo rm -rf /usr/share/dotnet || true
sudo rm -rf /opt/az || true
# Clear pip and npm caches
pip cache purge || true
sudo npm cache clean --force || true

- name: Check disk space after cleanup
run: df -h

- name: Install Python
uses: actions/setup-python@v5
with:
Expand All @@ -111,14 +171,17 @@ jobs:
INSTALLER: ${{ matrix.installer }}
run: |
if [ "$INSTALLER" = "pip-install" ]; then
pip install --upgrade pip
pip install -vvv ".[all]"
pip install --no-cache-dir --upgrade pip
pip install --no-cache-dir ".[all]"
else
export INSTALL_DIR=$(pwd)
bash docker/common/install_dep.sh --library "te,mcore,extra" --mode install
pip install --no-cache-dir ".[all]"
fi

- name: Check disk space after installation
run: df -h

- name: Run import checks
run: |
# Run import checks
Expand Down
Loading