Commit 995f1a5 2 people authored and committed
1 parent b5742d3 commit 995f1a5 Copy full SHA for 995f1a5
File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ defaults:
16
16
17
17
env :
18
18
HF_TOKEN : ${{ secrets.HF_TOKEN }}
19
+ UV_HTTP_TIMEOUT : 500
19
20
20
21
jobs :
21
22
cpu-tests :
@@ -33,20 +34,22 @@ jobs:
33
34
timeout-minutes : 25
34
35
35
36
steps :
36
- - uses : actions/checkout@v3
37
+ - uses : actions/checkout@v4
37
38
38
39
- name : Set up Python ${{ matrix.python-version }}
39
40
uses : actions/setup-python@v4
40
41
with :
41
42
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
45
46
46
47
- name : Install minimal dependencies
47
48
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
50
53
# make sure all modules are still importable with only the minimal dependencies available
51
54
modules=$(
52
55
find litgpt -type f -name "*.py" | \
58
61
59
62
- name : Install all dependencies
60
63
run : |
61
- pip install '.[all,test]'
62
- pip list
64
+ uv pip install --system -e '.[all,test]'
65
+ uv pip list
63
66
64
67
- name : Run tests
65
68
run : |
You can’t perform that action at this time.
0 commit comments