Skip to content

Commit 80235e0

Browse files
committed
Testing action: skip lfs and free up disk space.
1 parent 9f3afa6 commit 80235e0

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/testing.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
# match ubuntu-22.04
16-
python-version: ['3.10']
16+
python-version: ["3.9", "3.10", "3.10"]
1717

1818
env:
1919
OS: ubuntu-22.04
@@ -22,10 +22,26 @@ jobs:
2222

2323
steps:
2424
# Checkout and env setup
25-
- name: Checkout code
26-
uses: nschloe/action-cached-lfs-checkout@v1.1.3
25+
- uses: actions/checkout@v5
2726
with:
28-
exclude: "scoutbot/*/models/pytorch/"
27+
lfs: false # Skip LFS files - models are fetched from CDN during tests
28+
fetch-depth: 0
29+
30+
# Free up disk space on GitHub runner
31+
- name: Free Disk Space
32+
run: |
33+
echo "Disk usage before cleanup:"
34+
df -h
35+
36+
# Remove unnecessary large packages
37+
sudo rm -rf /usr/share/dotnet
38+
sudo rm -rf /opt/ghc
39+
sudo rm -rf "/usr/local/share/boost"
40+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
41+
sudo apt-get clean
42+
43+
echo "Disk usage after cleanup:"
44+
df -h
2945
3046
- name: Set up Python ${{ matrix.python-version }}
3147
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)