Skip to content

Commit fd4b8a2

Browse files
CI: replace pip with uv by Astral.sh (#952)
Co-authored-by: Andrei-Aksionov <aksionau.andrei@gmail.com>
1 parent 929f9c7 commit fd4b8a2

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/cpu-tests.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ defaults:
1616

1717
env:
1818
HF_TOKEN: ${{ secrets.HF_TOKEN }}
19+
UV_HTTP_TIMEOUT: 500
1920

2021
jobs:
2122
cpu-tests:
@@ -33,20 +34,22 @@ jobs:
3334
timeout-minutes: 25
3435

3536
steps:
36-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3738

3839
- name: Set up Python ${{ matrix.python-version }}
3940
uses: actions/setup-python@v4
4041
with:
4142
python-version: ${{ matrix.python-version }}
42-
cache: 'pip'
43-
cache-dependency-path: |
44-
pyproject.toml
43+
44+
- name: Install uv
45+
run: pip install uv
4546

4647
- name: Install minimal dependencies
4748
run: |
48-
pip install .
49-
pip list
49+
# uv pip install . is not yet supported, only `-e .`
50+
# https://github.com/astral-sh/uv/issues/1896
51+
uv pip install --system -e .
52+
uv pip list
5053
# make sure all modules are still importable with only the minimal dependencies available
5154
modules=$(
5255
find litgpt -type f -name "*.py" | \
@@ -58,8 +61,8 @@ jobs:
5861
5962
- name: Install all dependencies
6063
run: |
61-
pip install '.[all,test]'
62-
pip list
64+
uv pip install --system -e '.[all,test]'
65+
uv pip list
6366
6467
- name: Run tests
6568
run: |

0 commit comments

Comments
 (0)