mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-07-29 03:32:38 +00:00
f98e069381
CodeQL / Analyze (TypeScript) (push) Failing after 13m45s
test / test-activate-environment-custom-path (ubuntu-latest) (push) Failing after 10m30s
test / test-activate-environment (ubuntu-latest) (push) Failing after 10m45s
test / test-python-version (ubuntu-latest) (push) Failing after 10m55s
test / test-tool-install (ubuntu-latest) (push) Failing after 11m11s
test / test-uvx (push) Failing after 11m28s
test / test-with-explicit-token (push) Failing after 12m20s
test / test-checksum (map[checksum:4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd os:ubuntu-latest]) (push) Failing after 12m34s
test / test-malformed-pyproject-file-fallback (push) Failing after 13m10s
test / test-version-file-version (map[expected-version:0.8.3 version-file:__tests__/fixtures/uv-in-requirements-hash-txt-project/requirements.txt]) (push) Failing after 14m20s
test / test-version-file-version (map[expected-version:0.6.17 version-file:__tests__/fixtures/uv-in-requirements-txt-project/requirements.txt]) (push) Failing after 14m46s
test / test-version-file-version (map[expected-version:0.5.15 version-file:__tests__/fixtures/.tool-versions]) (push) Failing after 14m56s
test / test-from-working-directory-version (map[expected-version:0.5.15 working-directory:__tests__/fixtures/uv-toml-project]) (push) Failing after 15m8s
test / test-from-working-directory-version (map[expected-version:0.5.14 working-directory:__tests__/fixtures/pyproject-toml-project]) (push) Failing after 15m23s
test / test-latest-version (latest) (push) Failing after 15m39s
test / test-latest-version (>=0.8) (push) Failing after 15m56s
test / test-specific-version (map[expected-version:0.4.30 version-input:>=0.4.25,<0.5]) (push) Failing after 16m6s
test / test-specific-version (map[expected-version:0.4.25 resolution-strategy:lowest version-input:>=0.4.25]) (push) Failing after 16m30s
test / test-specific-version (map[expected-version:0.4.25 resolution-strategy:lowest version-input:>=0.4.25,<0.5]) (push) Failing after 16m43s
test / test-specific-version (map[expected-version:0.3.5 version-input:0.3]) (push) Failing after 17m4s
test / test-specific-version (map[expected-version:0.3.5 version-input:0.3.x]) (push) Failing after 17m35s
test / test-specific-version (map[expected-version:0.3.2 version-input:0.3.2]) (push) Failing after 18m9s
test / test-specific-version (map[expected-version:0.3.0 version-input:0.3.0]) (push) Failing after 18m41s
test / test-specific-version (map[expected-version:0.1.45 resolution-strategy:highest version-input:>=0.1,<0.2]) (push) Failing after 18m49s
test / test-specific-version (map[expected-version:0.1.0 resolution-strategy:lowest version-input:>=0.1.0,<0.2]) (push) Failing after 19m15s
test / test-uv-no-modify-path (push) Failing after 19m29s
test / test-default-version (ubuntu-latest) (push) Failing after 20m43s
test / lint (push) Failing after 21m4s
test / validate-typings (push) Failing after 28m54s
test / test-act (push) Failing after 30m8s
test / test-python-install-dir (map[expected-python-dir:/home/runner/work/_temp/uv-python-dir os:ubuntu-latest]) (push) Failing after 30m22s
test / test-cache-python-missing-managed-install-dir (push) Failing after 31m11s
test / test-cache-dir-from-file (push) Failing after 31m21s
test / test-cache-prune-force (push) Failing after 31m54s
test / test-relative-path (push) Failing after 32m22s
test / test-absolute-path (push) Failing after 32m34s
test / test-download-from-astral-mirror-false (push) Failing after 32m43s
test / test-custom-manifest-file (push) Failing after 32m59s
test / test-no-python-version (push) Failing after 33m12s
test / test-cache-local-cache-disabled-but-explicit-path (push) Failing after 33m25s
test / test-cache-local-cache-disabled (push) Failing after 33m39s
test / test-cache-local (map[expected-cache-dir:/home/runner/work/_temp/setup-uv-cache os:ubuntu-latest]) (push) Failing after 33m53s
test / test-setup-cache-restore-cache-false (push) Failing after 34m4s
test / test-setup-cache-save-cache-false (push) Failing after 34m19s
test / test-setup-cache-dependency-glob (push) Failing after 34m29s
test / test-setup-cache-requirements-txt (push) Failing after 34m41s
test / test-setup-cache (true, ubuntu-latest) (push) Failing after 34m57s
test / test-setup-cache (false, ubuntu-latest) (push) Failing after 35m11s
test / test-setup-cache (auto, ubuntu-latest) (push) Failing after 35m44s
test / test-cache-key-os-version (ubuntu-22.04, ubuntu-22.04) (push) Failing after 36m3s
test / test-musl (push) Failing after 36m18s
test / test-debian-unstable (push) Failing after 36m30s
test / test-activate-environment-no-project (push) Failing after 36m40s
test / test-restore-cache-requirements-txt (push) Has been skipped
test / test-restore-cache-dependency-glob (push) Has been skipped
test / test-restore-cache-save-cache-false (push) Has been skipped
test / test-restore-cache-restore-cache-false (push) Has been skipped
test / test-restore-python-installs (push) Has been skipped
test / test-cache-python-installs (push) Failing after 30m36s
test / test-tool-install (windows-latest) (push) Has been cancelled
test / test-tool-install (macos-14) (push) Has been cancelled
test / test-tool-install (macos-latest) (push) Has been cancelled
test / test-default-version (macos-14) (push) Has been cancelled
test / test-default-version (macos-latest) (push) Has been cancelled
test / test-default-version (windows-latest) (push) Has been cancelled
test / test-checksum (map[checksum:a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218 os:macos-latest]) (push) Has been cancelled
test / test-python-version (macos-latest) (push) Has been cancelled
test / test-python-version (windows-latest) (push) Has been cancelled
test / test-activate-environment (macos-latest) (push) Has been cancelled
test / test-activate-environment (windows-latest) (push) Has been cancelled
test / test-activate-environment-custom-path (macos-latest) (push) Has been cancelled
test / test-activate-environment-custom-path (windows-latest) (push) Has been cancelled
test / test-cache-key-os-version (macos-14, macos-14) (push) Has been cancelled
test / test-cache-key-os-version (macos-15, macos-15) (push) Has been cancelled
test / test-cache-key-os-version (ubuntu-24.04, ubuntu-24.04) (push) Has been cancelled
test / test-cache-key-os-version (windows-2022, windows-2022) (push) Has been cancelled
test / test-cache-key-os-version (windows-2025, windows-2025) (push) Has been cancelled
test / test-setup-cache (auto, windows-latest) (push) Has been cancelled
test / test-setup-cache (false, windows-latest) (push) Has been cancelled
test / test-setup-cache (true, windows-latest) (push) Has been cancelled
test / test-restore-cache (auto, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (auto, windows-latest) (push) Has been cancelled
test / test-restore-cache (false, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (false, windows-latest) (push) Has been cancelled
test / test-restore-cache (true, ubuntu-latest) (push) Has been cancelled
test / test-restore-cache (true, windows-latest) (push) Has been cancelled
test / test-cache-local (map[expected-cache-dir:D:\a\_temp\setup-uv-cache os:windows-latest]) (push) Has been cancelled
test / test-python-install-dir (map[expected-python-dir:D:\a\_temp\uv-python-dir os:windows-latest]) (push) Has been cancelled
test / all-tests-passed (push) Has been cancelled
Release Drafter / ✏️ Draft release (push) Has been cancelled
88 lines
3.4 KiB
YAML
88 lines
3.4 KiB
YAML
name: "Update docs"
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
tag:
|
|
description: "Release tag to update docs for (e.g., v8.2.0)"
|
|
required: true
|
|
type: string
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
update-docs:
|
|
continue-on-error: ${{ github.event_name == 'workflow_call' }}
|
|
runs-on: ubuntu-24.04-arm
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: true
|
|
- name: Get tag info
|
|
id: tag-info
|
|
run: |
|
|
if [ -n "$INPUT_TAG" ]; then
|
|
TAG_NAME="$INPUT_TAG"
|
|
else
|
|
TAG_NAME=$(git tag --list 'v[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -1)
|
|
fi
|
|
|
|
if [[ ! "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
|
echo "::error::Tag must match vMAJOR.MINOR.PATCH (e.g., v8.2.0)"
|
|
exit 1
|
|
fi
|
|
|
|
COMMIT_SHA=$(git rev-list -n 1 "$TAG_NAME")
|
|
echo "tag=$TAG_NAME" >> "$GITHUB_OUTPUT"
|
|
echo "sha=$COMMIT_SHA" >> "$GITHUB_OUTPUT"
|
|
env:
|
|
INPUT_TAG: ${{ inputs.tag }}
|
|
- name: Update references in docs
|
|
run: |
|
|
OLD_REF=$(grep -oh 'astral-sh/setup-uv@[a-f0-9]\{40\} # v[0-9][^ ]*' README.md docs/*.md | head -1)
|
|
OLD_SHA=$(echo "$OLD_REF" | sed 's/astral-sh\/setup-uv@\([a-f0-9]*\) # .*/\1/')
|
|
OLD_VERSION=$(echo "$OLD_REF" | sed 's/astral-sh\/setup-uv@[a-f0-9]* # \(v[^ ]*\)/\1/')
|
|
echo "Replacing $OLD_SHA # $OLD_VERSION with $NEW_SHA # $NEW_VERSION"
|
|
find README.md docs/ -type f \( -name "*.md" \) -exec \
|
|
sed -i "s|$OLD_SHA # $OLD_VERSION|$NEW_SHA # $NEW_VERSION|g" {} +
|
|
env:
|
|
NEW_SHA: ${{ steps.tag-info.outputs.sha }}
|
|
NEW_VERSION: ${{ steps.tag-info.outputs.tag }}
|
|
- name: Check for changes
|
|
id: changes-exist
|
|
run: |
|
|
if [ -n "$(git status --porcelain)" ]; then
|
|
echo "changes-exist=true" >> "$GITHUB_OUTPUT"
|
|
else
|
|
echo "changes-exist=false" >> "$GITHUB_OUTPUT"
|
|
fi
|
|
- name: Commit and push changes
|
|
if: ${{ steps.changes-exist.outputs.changes-exist == 'true' }}
|
|
id: commit-and-push
|
|
continue-on-error: true
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
git add .
|
|
git commit -m "docs: update version references to $NEW_VERSION"
|
|
git push origin HEAD:refs/heads/main
|
|
env:
|
|
NEW_VERSION: ${{ steps.tag-info.outputs.tag }}
|
|
- name: Create Pull Request
|
|
if: ${{ steps.changes-exist.outputs.changes-exist == 'true' && steps.commit-and-push.outcome != 'success' }}
|
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
with:
|
|
commit-message: "docs: update version references to ${{ steps.tag-info.outputs.tag }}"
|
|
title: "docs: update version references to ${{ steps.tag-info.outputs.tag }}"
|
|
body: |
|
|
Update `uses: astral-sh/setup-uv@...` references in documentation to
|
|
`${{ steps.tag-info.outputs.sha }} # ${{ steps.tag-info.outputs.tag }}`.
|
|
base: main
|
|
labels: "automated-pr,documentation"
|
|
branch: update-docs-${{ steps.tag-info.outputs.tag }}
|
|
delete-branch: true
|