Skip to content

Commit e9f5455

Browse files
authored
fix test-check failures and use GH hosted runner for now (#497)
Signed-off-by: Dan Huang <dahuang@redhat.com>
1 parent 87b3714 commit e9f5455

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/test-check.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ on:
1212

1313
jobs:
1414
python-tests:
15-
runs-on: k8s-util
15+
runs-on: ubuntu-22.04
1616
env:
17-
HF_HOME: /model-cache
1817
HF_TOKEN: ${{ secrets.NM_HF_TOKEN_READ_ONLY }}
1918
steps:
2019
- uses: actions/setup-python@v5
@@ -32,5 +31,20 @@ jobs:
3231
run: pip3 install --upgrade pip setuptools
3332
- name: "⚙️ Install dependencies"
3433
run: pip3 install .[dev,accelerate]
34+
- name: clean up
35+
run: |
36+
echo "cleaning up disk space as GHA runner has limited disk size."
37+
python3 -m pip cache purge
38+
sudo rm -rf /usr/local/.ghcup
39+
sudo rm -rf /opt/hostedtoolcache/CodeQL
40+
sudo rm -rf /usr/local/lib/android/sdk/ndk
41+
sudo rm -rf /usr/share/dotnet
42+
sudo rm -rf /opt/ghc
43+
sudo rm -rf /usr/local/share/boost
44+
if [[ "$(cat /etc/issue)" =~ Ubuntu ]]; then
45+
sudo apt-get clean
46+
fi
47+
df -h
48+
shell: bash
3549
- name: "🔬 Running tests"
3650
run: make test

0 commit comments

Comments
 (0)