Speed up github workflows by not installing cuda server dependencies

- CI runners don't have GPUs
- Pytorch related Nvidia cuda packages are not required for testing,
  evals or pre-commit checks.
- Avoiding these massive downloads should speed up workflow run.
This commit is contained in:
Debanjum
2025-08-01 23:23:44 -07:00
parent 8ad38dfe11
commit f2bd07044e
3 changed files with 10 additions and 1 deletions

View File

@@ -135,6 +135,10 @@ jobs:
git clone https://github.com/khoj-ai/terrarium.git && cd terrarium && npm install --legacy-peer-deps && mkdir pyodide_cache
- name: ⬇️ Install Application
env:
UV_INDEX: "https://download.pytorch.org/whl/cpu"
UV_INDEX_STRATEGY: "unsafe-best-match"
CUDA_VISIBLE_DEVICES: ""
run: |
sed -i 's/dynamic = \["version"\]/version = "${{ steps.hatch.outputs.version }}"/' pyproject.toml
uv sync --all-extras