Skip to content

Commit

Permalink
Use uv in CI (#246)
Browse files Browse the repository at this point in the history
* use uv instead of pip

* add `numpy` to constraints
  • Loading branch information
MahmoudAshraf97 authored Oct 11, 2024
1 parent 6f28633 commit 23c104a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip cython
python -m pip install --upgrade pip cython uv
# This is to avoid installing cuda dependencies
python -m pip install torch torchaudio --index-url https://download.pytorch.org/whl/cpu
python -m pip install -c constraints.txt -r requirements.txt
uv pip install --system -c constraints.txt -r requirements.txt
- name: Test running a file
run: |
Expand Down
3 changes: 2 additions & 1 deletion constraints.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
huggingface_hub<0.24
huggingface_hub<0.24
numpy<2

0 comments on commit 23c104a

Please sign in to comment.