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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
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