Skip to content

Commit 869b590

Browse files
authored
Use venv for pip install on lint (#381)
1 parent 6c5c4ca commit 869b590

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,16 @@ jobs:
3434
3535
- name: Install PyTorch
3636
run: |
37+
source .venv/bin/activate
3738
uv pip install -U --pre torch --index-url https://download.pytorch.org/whl/nightly/cu128
3839
3940
- name: Install lint dependencies
4041
run: |
42+
source .venv/bin/activate
4143
uv pip install pyright==1.1.403
42-
uv pip install pre-commit
4344
uv pip install .'[dev]'
4445
4546
- name: Run pre-commit
4647
run: |
47-
uv run pre-commit run --all-files
48+
source .venv/bin/activate
49+
pre-commit run --all-files

0 commit comments

Comments
 (0)