Skip to content

Commit ac93095

Browse files
committed
use uv in ci
1 parent 6a74b2f commit ac93095

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

.github/workflows/tests.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ jobs:
2828

2929
steps:
3030
- uses: actions/checkout@v3
31-
- uses: actions/setup-python@v4
31+
- name: Install uv and Python
32+
uses: astral-sh/setup-uv@v5
3233
with:
3334
python-version: ${{ matrix.python-version }}
3435
- name: Install dependencies
3536
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]"
3839
- name: Run Tests
3940
run: |
4041
pytest -m 'not rsc_test and not docker' --cov --cov-report xml
@@ -47,14 +48,15 @@ jobs:
4748
if: ${{ !github.event.pull_request.head.repo.fork }}
4849
steps:
4950
- uses: actions/checkout@v3
50-
- uses: actions/setup-python@v4
51+
- name: Install uv and Python
52+
uses: astral-sh/setup-uv@v5
5153
with:
5254
python-version: "3.9"
5355
- name: Install dependencies
5456
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 }}
5860
echo {{ github.sha }}
5961
- name: run Connect
6062
run: |
@@ -76,14 +78,15 @@ jobs:
7678
runs-on: ubuntu-latest
7779
steps:
7880
- uses: actions/checkout@v3
79-
- uses: actions/setup-python@v4
81+
- name: Install uv and Python
82+
uses: astral-sh/setup-uv@v5
8083
with:
8184
python-version: "3.10"
8285
- name: Install dependencies
8386
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 }}
8790
- name: run Docker
8891
run: |
8992
python script/setup-docker/docker.py
@@ -101,13 +104,14 @@ jobs:
101104
runs-on: ubuntu-latest
102105
steps:
103106
- uses: actions/checkout@v3
104-
- uses: actions/setup-python@v4
107+
- name: Install uv and Python
108+
uses: astral-sh/setup-uv@v5
105109
with:
106110
python-version: "3.10"
107111
- name: Install dependencies
108112
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]
111115
112116
- name: Run tests
113117
run: |
@@ -138,14 +142,15 @@ jobs:
138142
uses: actions/checkout@v3
139143

140144
- name: Setup Python
141-
uses: actions/setup-python@v4
145+
- name: Install uv and Python
146+
uses: astral-sh/setup-uv@v5
142147
with:
143148
python-version: "3.11"
144149

145150
- name: Install Packages
146151
shell: bash
147152
run: |
148-
pip install ".[dev,all_models]"
153+
uv pip install ".[dev,all_models]"
149154
150155
- name: Run Tests
151156
shell: bash
@@ -158,7 +163,8 @@ jobs:
158163
needs: [test-no-extras, tests, test-connect]
159164
steps:
160165
- uses: actions/checkout@v4
161-
- uses: actions/setup-python@v4
166+
- name: Install uv and Python
167+
uses: astral-sh/setup-uv@v5
162168
with:
163169
python-version: "3.10"
164170
- name: "Build Package"

0 commit comments

Comments
 (0)