From 18e2e2c8cf7a7bd101d68ce53220a1addd8f2b2b Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 6 Oct 2026 18:34:33 +0200 Subject: [PATCH 1/3] Use setup-uv defaults for Python and the venv --- .github/workflows/links.yml | 8 ++------ .github/workflows/tag.yml | 7 +------ 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 0225451c099..1838814ee74 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -52,17 +52,13 @@ jobs: with: fetch-depth: 1 - - uses: actions/setup-python@v7 - with: - python-version: "3.x" - - uses: ultralytics/actions/setup-uv@main - name: Install lychee and dependencies run: | curl -sSfL "https://github.com/lycheeverse/lychee/releases/latest/download/lychee-x86_64-unknown-linux-gnu.tar.gz" | sudo tar xz --strip-components=1 -C /usr/local/bin lychee-x86_64-unknown-linux-gnu/lychee - uv pip install --system -r requirements.txt + uv pip install -r requirements.txt - name: Get Website URLs run: | @@ -121,7 +117,7 @@ jobs: id: codespell run: | # Install codespell - uv pip install --system codespell + uv pip install codespell # Run codespell on rendered HTML text, not inline JS/CSS payloads. SPELLCHECK_ROOT=".codespell-html" diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index fa085904345..6f404405792 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -61,15 +61,10 @@ jobs: git tag -a "${{ github.event.inputs.tag_name }}" -m "$(git log -1 --pretty=%B)" git push origin "${{ github.event.inputs.tag_name }}" - - name: Set up Python environment - uses: actions/setup-python@v7 - with: - python-version: "3.x" - - uses: ultralytics/actions/setup-uv@main - name: Install dependencies - run: uv pip install --system ultralytics-actions + run: uv pip install ultralytics-actions - name: Publish new release env: From e493cc66eee818d51697b6695a7971dfff6dea0f Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 6 Oct 2026 18:34:33 +0200 Subject: [PATCH 2/3] Validate against ultralytics/actions#915 setup-uv-defaults branch --- .github/workflows/links.yml | 2 +- .github/workflows/tag.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 1838814ee74..b539c6bfe96 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -52,7 +52,7 @@ jobs: with: fetch-depth: 1 - - uses: ultralytics/actions/setup-uv@main + - uses: ultralytics/actions/setup-uv@setup-uv-defaults - name: Install lychee and dependencies run: | diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 6f404405792..5f8c1fc1d07 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -61,7 +61,7 @@ jobs: git tag -a "${{ github.event.inputs.tag_name }}" -m "$(git log -1 --pretty=%B)" git push origin "${{ github.event.inputs.tag_name }}" - - uses: ultralytics/actions/setup-uv@main + - uses: ultralytics/actions/setup-uv@setup-uv-defaults - name: Install dependencies run: uv pip install ultralytics-actions From 946c2c39ebf8d866c26c42817a50965bd7f5bfa1 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 6 Oct 2026 19:18:13 +0200 Subject: [PATCH 3/3] Point setup-uv back to @main now that ultralytics/actions#915 is merged --- .github/workflows/links.yml | 2 +- .github/workflows/tag.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index b539c6bfe96..1838814ee74 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -52,7 +52,7 @@ jobs: with: fetch-depth: 1 - - uses: ultralytics/actions/setup-uv@setup-uv-defaults + - uses: ultralytics/actions/setup-uv@main - name: Install lychee and dependencies run: | diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 5f8c1fc1d07..6f404405792 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -61,7 +61,7 @@ jobs: git tag -a "${{ github.event.inputs.tag_name }}" -m "$(git log -1 --pretty=%B)" git push origin "${{ github.event.inputs.tag_name }}" - - uses: ultralytics/actions/setup-uv@setup-uv-defaults + - uses: ultralytics/actions/setup-uv@main - name: Install dependencies run: uv pip install ultralytics-actions