Skip to content

Commit 62d45ea

Browse files
Update python_tests.yaml
1 parent 007ec5b commit 62d45ea

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/python_tests.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,20 @@ jobs:
2222
uses: actions/setup-python@v5
2323
with:
2424
python-version: '3.11'
25-
cache: 'pip' # Enable caching to speed up future runs
25+
cache: 'pip'
2626

2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
3030
31-
# --- FIX FOR DISK SPACE ERROR ---
32-
# Install CPU-only versions of PyTorch first (saves ~3GB)
33-
# We must install torch, torchvision, and torchaudio from the CPU index
31+
# 1. Install CPU-only PyTorch first (Prevents 3GB+ download)
3432
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
35-
# -------------------------------
36-
37-
# Now install the rest of the requirements
38-
# (Pip will see torch is already installed and skip the huge download)
33+
34+
# 2. Install the rest of the requirements
35+
# (Make sure you removed 'torch' from requirements.txt!)
3936
pip install -r requirements.txt
4037
41-
# Install explicit dependencies if needed
38+
# 3. Install explicit tools
4239
pip install tqdm
4340
4441
- name: Run Unit Tests

0 commit comments

Comments
 (0)