Use uv action rather than install script (#14530)

This commit is contained in:
Avasam
2025-08-08 06:11:44 -04:00
committed by GitHub
parent 56264ac973
commit 2e3203fdff
3 changed files with 21 additions and 7 deletions
+9 -3
View File
@@ -39,7 +39,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: astral-sh/setup-uv@v6
with:
version-file: "requirements-tests.txt"
- run: uv pip install -r requirements-tests.txt --system
- run: python ./tests/typecheck_typeshed.py --platform=${{ matrix.platform }}
pyright:
@@ -54,7 +56,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: astral-sh/setup-uv@v6
with:
version-file: "requirements-tests.txt"
- run: uv pip install -r requirements-tests.txt --system
- name: Run pyright on typeshed
uses: jakebailey/pyright-action@v2
@@ -71,7 +75,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: astral-sh/setup-uv@v6
with:
version-file: "requirements-tests.txt"
- name: Git config
run: |
git config --global user.name stubsabot
+3 -1
View File
@@ -27,7 +27,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: astral-sh/setup-uv@v6
with:
version-file: "requirements-tests.txt"
- name: git config
run: |
git config --global user.name stubsabot
+9 -3
View File
@@ -30,7 +30,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: astral-sh/setup-uv@v6
with:
version-file: "requirements-tests.txt"
- run: uv pip install -r requirements-tests.txt --system
- run: python ./tests/check_typeshed_structure.py
@@ -48,7 +50,9 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: astral-sh/setup-uv@v6
with:
version-file: "requirements-tests.txt"
- run: uv pip install -r requirements-tests.txt --system
- name: Install required APT packages
run: |
@@ -81,7 +85,9 @@ jobs:
# Use py311 for now, as py312 seems to be around 30s slower in CI
# TODO: figure out why that is (#11590)
python-version: "3.11"
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- uses: astral-sh/setup-uv@v6
with:
version-file: "requirements-tests.txt"
- run: uv pip install -r requirements-tests.txt --system
- run: python ./tests/regr_test.py --all --verbosity QUIET