Skip to content

Commit fd26b70

Browse files
authored
use uv in gh actions (#192)
* use uv for speeding up pip install during test
1 parent 6856b08 commit fd26b70

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
group: [0, 1, 2, 3, 4, 5, 6, 7]
16+
group: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
1717

1818
steps:
1919
- uses: actions/checkout@v4
@@ -23,9 +23,10 @@ jobs:
2323
python-version: "3.10"
2424
- name: Install dependencies
2525
run: |
26-
python -m pip install --upgrade pip
27-
python -m pip install torch==2.3.1
28-
python -m pip install --default-timeout=100 -e .[test]
26+
python -m pip install uv
27+
python -m uv pip install --upgrade pip
28+
python -m uv pip install torch==2.3.1
29+
python -m uv pip install -e .[test]
2930
- name: Test with pytest
3031
run: |
31-
python -m pytest --num-shards 8 --shard-id ${{ matrix.group }} tests/
32+
python -m pytest --num-shards 10 --shard-id ${{ matrix.group }} tests/

0 commit comments

Comments
 (0)