Skip to content

Commit 2e3203f

Browse files
authored
Use uv action rather than install script (#14530)
1 parent 56264ac commit 2e3203f

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/meta_tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
- uses: actions/setup-python@v5
4040
with:
4141
python-version: "3.13"
42-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
42+
- uses: astral-sh/setup-uv@v6
43+
with:
44+
version-file: "requirements-tests.txt"
4345
- run: uv pip install -r requirements-tests.txt --system
4446
- run: python ./tests/typecheck_typeshed.py --platform=${{ matrix.platform }}
4547
pyright:
@@ -54,7 +56,9 @@ jobs:
5456
- uses: actions/setup-python@v5
5557
with:
5658
python-version: "3.13"
57-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
59+
- uses: astral-sh/setup-uv@v6
60+
with:
61+
version-file: "requirements-tests.txt"
5862
- run: uv pip install -r requirements-tests.txt --system
5963
- name: Run pyright on typeshed
6064
uses: jakebailey/pyright-action@v2
@@ -71,7 +75,9 @@ jobs:
7175
- uses: actions/setup-python@v5
7276
with:
7377
python-version: "3.13"
74-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
78+
- uses: astral-sh/setup-uv@v6
79+
with:
80+
version-file: "requirements-tests.txt"
7581
- name: Git config
7682
run: |
7783
git config --global user.name stubsabot

.github/workflows/stubsabot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
- uses: actions/setup-python@v5
2828
with:
2929
python-version: "3.13"
30-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
30+
- uses: astral-sh/setup-uv@v6
31+
with:
32+
version-file: "requirements-tests.txt"
3133
- name: git config
3234
run: |
3335
git config --global user.name stubsabot

.github/workflows/tests.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- uses: actions/setup-python@v5
3131
with:
3232
python-version: "3.13"
33-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
33+
- uses: astral-sh/setup-uv@v6
34+
with:
35+
version-file: "requirements-tests.txt"
3436
- run: uv pip install -r requirements-tests.txt --system
3537
- run: python ./tests/check_typeshed_structure.py
3638

@@ -48,7 +50,9 @@ jobs:
4850
- uses: actions/setup-python@v5
4951
with:
5052
python-version: ${{ matrix.python-version }}
51-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
53+
- uses: astral-sh/setup-uv@v6
54+
with:
55+
version-file: "requirements-tests.txt"
5256
- run: uv pip install -r requirements-tests.txt --system
5357
- name: Install required APT packages
5458
run: |
@@ -81,7 +85,9 @@ jobs:
8185
# Use py311 for now, as py312 seems to be around 30s slower in CI
8286
# TODO: figure out why that is (#11590)
8387
python-version: "3.11"
84-
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
88+
- uses: astral-sh/setup-uv@v6
89+
with:
90+
version-file: "requirements-tests.txt"
8591
- run: uv pip install -r requirements-tests.txt --system
8692
- run: python ./tests/regr_test.py --all --verbosity QUIET
8793

0 commit comments

Comments
 (0)