Skip to content

Commit 0f7e04e

Browse files
authored
Switch to using uv pip for installations (#323)
1 parent c229b27 commit 0f7e04e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ jobs:
5959
python-version: ${{ matrix.python-version }}
6060
- name: Install dependencies
6161
run: |
62-
python -m pip install --upgrade pip
63-
python -m pip install pytest pytest-cov
64-
pip install torch==${{ matrix.pytorch-version }} torchvision transformers
62+
python -m pip install --upgrade uv
63+
uv pip install --system pytest pytest-cov
64+
uv pip install --system torch==${{ matrix.pytorch-version }} torchvision transformers
6565
- name: mypy
6666
if: ${{ matrix.pytorch-version == '2.2' }}
6767
run: |
68-
python -m pip install mypy==1.9.0
68+
uv pip install --system mypy==1.9.0
6969
mypy --install-types --non-interactive .
7070
- name: pytest
7171
if: ${{ matrix.pytorch-version == '2.2' }}

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ ci:
22
skip: [mypy, pytest]
33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.6.7
5+
rev: v0.6.8
66
hooks:
77
- id: ruff
88
args: [--fix]

0 commit comments

Comments
 (0)