@@ -28,13 +28,14 @@ jobs:
28
28
29
29
steps :
30
30
- uses : actions/checkout@v3
31
- - uses : actions/setup-python@v4
31
+ - name : Install uv and Python
32
+ uses : astral-sh/setup-uv@v5
32
33
with :
33
34
python-version : ${{ matrix.python-version }}
34
35
- name : Install dependencies
35
36
run : |
36
- python -m pip install --upgrade pip
37
- python -m pip install -e ".[dev, all_models]"
37
+ uv pip install --upgrade pip
38
+ uv pip install -e ".[dev, all_models]"
38
39
- name : Run Tests
39
40
run : |
40
41
pytest -m 'not rsc_test and not docker' --cov --cov-report xml
@@ -47,14 +48,15 @@ jobs:
47
48
if : ${{ !github.event.pull_request.head.repo.fork }}
48
49
steps :
49
50
- uses : actions/checkout@v3
50
- - uses : actions/setup-python@v4
51
+ - name : Install uv and Python
52
+ uses : astral-sh/setup-uv@v5
51
53
with :
52
54
python-version : " 3.9"
53
55
- name : Install dependencies
54
56
run : |
55
- python -m pip install --upgrade pip
56
- python -m pip install ".[dev]"
57
- python -m pip install --upgrade git+https://github.com/rstudio/vetiver-python@${{ github.sha }}
57
+ uv pip install --upgrade pip
58
+ uv pip install ".[dev]"
59
+ uv pip install --upgrade git+https://github.com/rstudio/vetiver-python@${{ github.sha }}
58
60
echo {{ github.sha }}
59
61
- name : run Connect
60
62
run : |
@@ -76,14 +78,15 @@ jobs:
76
78
runs-on : ubuntu-latest
77
79
steps :
78
80
- uses : actions/checkout@v3
79
- - uses : actions/setup-python@v4
81
+ - name : Install uv and Python
82
+ uses : astral-sh/setup-uv@v5
80
83
with :
81
84
python-version : " 3.10"
82
85
- name : Install dependencies
83
86
run : |
84
- python -m pip install --upgrade pip
85
- python -m pip install ".[dev]"
86
- python -m pip install --upgrade git+https://github.com/rstudio/vetiver-python@${{ github.sha }}
87
+ uv pip install --upgrade pip
88
+ uv pip install ".[dev]"
89
+ uv pip install --upgrade git+https://github.com/rstudio/vetiver-python@${{ github.sha }}
87
90
- name : run Docker
88
91
run : |
89
92
python script/setup-docker/docker.py
@@ -101,13 +104,14 @@ jobs:
101
104
runs-on : ubuntu-latest
102
105
steps :
103
106
- uses : actions/checkout@v3
104
- - uses : actions/setup-python@v4
107
+ - name : Install uv and Python
108
+ uses : astral-sh/setup-uv@v5
105
109
with :
106
110
python-version : " 3.10"
107
111
- name : Install dependencies
108
112
run : |
109
- python -m pip install --upgrade pip
110
- python -m pip install -e .[dev]
113
+ uv pip install --upgrade pip
114
+ uv pip install -e .[dev]
111
115
112
116
- name : Run tests
113
117
run : |
@@ -138,14 +142,15 @@ jobs:
138
142
uses : actions/checkout@v3
139
143
140
144
- name : Setup Python
141
- uses : actions/setup-python@v4
145
+ - name : Install uv and Python
146
+ uses : astral-sh/setup-uv@v5
142
147
with :
143
148
python-version : " 3.11"
144
149
145
150
- name : Install Packages
146
151
shell : bash
147
152
run : |
148
- pip install ".[dev,all_models]"
153
+ uv pip install ".[dev,all_models]"
149
154
150
155
- name : Run Tests
151
156
shell : bash
@@ -158,7 +163,8 @@ jobs:
158
163
needs : [test-no-extras, tests, test-connect]
159
164
steps :
160
165
- uses : actions/checkout@v4
161
- - uses : actions/setup-python@v4
166
+ - name : Install uv and Python
167
+ uses : astral-sh/setup-uv@v5
162
168
with :
163
169
python-version : " 3.10"
164
170
- name : " Build Package"
0 commit comments