Skip to content

Commit 7c9345a

Browse files
committed
Switch to astral-sh/setup-uv
1 parent 1e214d3 commit 7c9345a

File tree

1 file changed

+18
-41
lines changed

1 file changed

+18
-41
lines changed

.github/workflows/third_party.yml

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,10 @@ jobs:
5050
runs-on: ubuntu-latest
5151
timeout-minutes: 60
5252
steps:
53-
- name: Setup Python
54-
uses: actions/setup-python@v5
53+
- name: Install the latest version of uv
54+
uses: astral-sh/setup-uv@v6
5555
with:
5656
python-version: ${{ matrix.python-version }}
57-
allow-prereleases: true
58-
- name: Install uv
59-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
6057
- name: Checkout pydantic
6158
run: git clone --depth=1 https://github.com/pydantic/pydantic.git || git clone --depth=1 https://github.com/pydantic/pydantic.git
6259
- name: Checkout typing_extensions
@@ -83,12 +80,10 @@ jobs:
8380
runs-on: ubuntu-latest
8481
timeout-minutes: 60
8582
steps:
86-
- name: Setup Python
87-
uses: actions/setup-python@v5
83+
- name: Install the latest version of uv
84+
uses: astral-sh/setup-uv@v6
8885
with:
8986
python-version: ${{ matrix.python-version }}
90-
- name: Install uv
91-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
9287
- name: Checkout typing_inspect
9388
run: git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git || git clone --depth=1 https://github.com/ilevkivskyi/typing_inspect.git
9489
- name: Checkout typing_extensions
@@ -120,13 +115,10 @@ jobs:
120115
runs-on: ubuntu-latest
121116
timeout-minutes: 60
122117
steps:
123-
- name: Setup Python
124-
uses: actions/setup-python@v5
118+
- name: Install the latest version of uv
119+
uses: astral-sh/setup-uv@v6
125120
with:
126121
python-version: ${{ matrix.python-version }}
127-
allow-prereleases: true
128-
- name: Install uv
129-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
130122
- name: Check out pycroscope
131123
run: git clone --depth=1 https://github.com/JelleZijlstra/pycroscope.git || git clone --depth=1 https://github.com/JelleZijlstra/pycroscope.git
132124
- name: Checkout typing_extensions
@@ -158,13 +150,10 @@ jobs:
158150
runs-on: ubuntu-latest
159151
timeout-minutes: 60
160152
steps:
161-
- name: Setup Python
162-
uses: actions/setup-python@v5
153+
- name: Install the latest version of uv
154+
uses: astral-sh/setup-uv@v6
163155
with:
164156
python-version: ${{ matrix.python-version }}
165-
allow-prereleases: true
166-
- name: Install uv
167-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
168157
- name: Check out typeguard
169158
run: git clone --depth=1 https://github.com/agronholm/typeguard.git || git clone --depth=1 https://github.com/agronholm/typeguard.git
170159
- name: Checkout typing_extensions
@@ -197,12 +186,10 @@ jobs:
197186
runs-on: ubuntu-latest
198187
timeout-minutes: 60
199188
steps:
200-
- name: Setup Python
201-
uses: actions/setup-python@v5
189+
- name: Install the latest version of uv
190+
uses: astral-sh/setup-uv@v6
202191
with:
203192
python-version: ${{ matrix.python-version }}
204-
- name: Install uv
205-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
206193
- name: Check out typed-argument-parser
207194
run: git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git || git clone --depth=1 https://github.com/swansonk14/typed-argument-parser.git
208195
- name: Checkout typing_extensions
@@ -241,13 +228,10 @@ jobs:
241228
runs-on: ubuntu-latest
242229
timeout-minutes: 60
243230
steps:
244-
- name: Setup Python
245-
uses: actions/setup-python@v5
231+
- name: Install the latest version of uv
232+
uses: astral-sh/setup-uv@v6
246233
with:
247234
python-version: ${{ matrix.python-version }}
248-
allow-prereleases: true
249-
- name: Install uv
250-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
251235
- name: Checkout mypy for stubtest and mypyc tests
252236
run: git clone --depth=1 https://github.com/python/mypy.git || git clone --depth=1 https://github.com/python/mypy.git
253237
- name: Checkout typing_extensions
@@ -280,8 +264,8 @@ jobs:
280264
runs-on: ubuntu-latest
281265
timeout-minutes: 60
282266
steps:
283-
- name: Setup Python
284-
uses: actions/setup-python@v5
267+
- name: Install the latest version of uv
268+
uses: astral-sh/setup-uv@v6
285269
with:
286270
python-version: ${{ matrix.python-version }}
287271
- name: Checkout cattrs
@@ -291,8 +275,6 @@ jobs:
291275
with:
292276
path: typing-extensions-latest
293277
persist-credentials: false
294-
- name: Install uv
295-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
296278
- name: Add local version of typing_extensions as a dependency
297279
run: cd cattrs; uv add --editable ../typing-extensions-latest
298280
- name: Install test dependencies
@@ -317,13 +299,10 @@ jobs:
317299
runs-on: ubuntu-22.04
318300
timeout-minutes: 60
319301
steps:
320-
- name: Setup Python
321-
uses: actions/setup-python@v5
302+
- name: Install the latest version of uv
303+
uses: astral-sh/setup-uv@v6
322304
with:
323305
python-version: ${{ matrix.python-version }}
324-
allow-prereleases: true
325-
- name: Install uv
326-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
327306
- name: Checkout sqlalchemy
328307
run: git clone -b ${{ matrix.checkout-ref }} --depth=1 https://github.com/sqlalchemy/sqlalchemy.git || git clone -b ${{ matrix.checkout-ref }} --depth=1 https://github.com/sqlalchemy/sqlalchemy.git
329308
- name: Checkout typing_extensions
@@ -357,8 +336,8 @@ jobs:
357336
matrix:
358337
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
359338
steps:
360-
- name: Setup Python
361-
uses: actions/setup-python@v5
339+
- name: Install the latest version of uv
340+
uses: astral-sh/setup-uv@v6
362341
with:
363342
python-version: ${{ matrix.python-version }}
364343
- name: Checkout litestar
@@ -368,8 +347,6 @@ jobs:
368347
with:
369348
path: typing-extensions-latest
370349
persist-credentials: false
371-
- name: Install uv
372-
run: curl -LsSf https://astral.sh/uv/install.sh | sh
373350
- name: Run litestar tests
374351
run: uv run --with=../typing-extensions-latest -- python -m pytest tests/unit/test_typing.py tests/unit/test_dto
375352
working-directory: litestar

0 commit comments

Comments
 (0)