Skip to content

[CI] Use version from requirements for setup-uv #14082

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 26, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[CI] Use version from requirements for setup-uv
  • Loading branch information
srittau committed May 16, 2025
commit 9e61f35134089b76bb03e34f64b1bfadb1a5e0bc
7 changes: 7 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,14 @@ jobs:
with:
# Keep in sync with stub_uploader's check_scripts.yml workflow.
python-version: "3.13"
- name: Determine uv version from requirements-tests.txt
id: determine_uv_version
run: |
uv_version=$(grep '^uv==' requirements-tests.txt | cut -d = -f 3)
echo "uv_version=$uv_version" >> $GITHUB_OUTPUT
- uses: astral-sh/setup-uv@v6
with:
version: ${{ steps.determine_uv_version.outputs.uv_version }}
- name: Run tests
run: |
cd stub_uploader
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,14 @@ jobs:
with:
# Max supported Python version as of pytype 2024.10.11
python-version: "3.12"
- name: Determine uv version from requirements-tests.txt
id: determine_uv_version
run: |
uv_version=$(grep '^uv==' requirements-tests.txt | cut -d = -f 3)
echo "uv_version=$uv_version" >> $GITHUB_OUTPUT
- uses: astral-sh/setup-uv@v6
with:
version: ${{ steps.determine_uv_version.outputs.uv_version }}
- run: uv pip install -r requirements-tests.txt --system
- name: Install external dependencies for 3rd-party stubs
run: |
Expand Down Expand Up @@ -118,7 +125,14 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Determine uv version from requirements-tests.txt
id: determine_uv_version
run: |
uv_version=$(grep '^uv==' requirements-tests.txt | cut -d = -f 3)
echo "uv_version=$uv_version" >> $GITHUB_OUTPUT
- uses: astral-sh/setup-uv@v6
with:
version: ${{ steps.determine_uv_version.outputs.uv_version }}
- name: Install typeshed test-suite requirements
# Install these so we can run `get_external_stub_requirements.py`
run: uv pip install -r requirements-tests.txt --system
Expand Down Expand Up @@ -183,7 +197,14 @@ jobs:
with:
# Keep in sync with stub_uploader's check_scripts.yml workflow.
python-version: "3.13"
- name: Determine uv version from requirements-tests.txt
id: determine_uv_version
run: |
uv_version=$(grep '^uv==' requirements-tests.txt | cut -d = -f 3)
echo "uv_version=$uv_version" >> $GITHUB_OUTPUT
- uses: astral-sh/setup-uv@v6
with:
version: ${{ steps.determine_uv_version.outputs.uv_version }}
- name: Run tests
run: |
cd stub_uploader
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy