[PR #24527] chore: standardize to official astral-sh/setup-uv@v6 action #30672

Closed
opened 2026-02-21 20:48:00 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/24527

State: closed
Merged: Yes


Fixes #24522

Summary

This PR removes the redundant custom .github/actions/setup-uv/ action and standardizes all workflows to use the official astral-sh/setup-uv@v6 action directly.

Changes Made

  • Removed custom setup-uv action: Eliminated the wrapper action that duplicated Python setup functionality
  • Updated 5 workflows: Replaced all usages of ./.github/actions/setup-uv with astral-sh/setup-uv@v6
    • api-tests.yml
    • db-migration-test.yml
    • style.yml
    • vdb-tests.yml
    • autofix.yml (upgraded from commit hash to v6)
  • Standardized Python version specifications: Added explicit python-version parameter where missing
  • Improved caching configuration: Updated to use cache-dependency-glob parameter for better cache management
  • Removed empty actions directory: Cleaned up unused directory structure

Benefits

  • Eliminates maintenance overhead of custom action
  • Uses latest stable official action version
  • Reduces CI complexity by removing redundant Python setup steps
  • Maintains all existing functionality while improving performance

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/24527 **State:** closed **Merged:** Yes --- Fixes #24522 ## Summary This PR removes the redundant custom `.github/actions/setup-uv/` action and standardizes all workflows to use the official `astral-sh/setup-uv@v6` action directly. ## Changes Made - **Removed custom setup-uv action**: Eliminated the wrapper action that duplicated Python setup functionality - **Updated 5 workflows**: Replaced all usages of `./.github/actions/setup-uv` with `astral-sh/setup-uv@v6` - `api-tests.yml` - `db-migration-test.yml` - `style.yml` - `vdb-tests.yml` - `autofix.yml` (upgraded from commit hash to v6) - **Standardized Python version specifications**: Added explicit `python-version` parameter where missing - **Improved caching configuration**: Updated to use `cache-dependency-glob` parameter for better cache management - **Removed empty actions directory**: Cleaned up unused directory structure ## Benefits - Eliminates maintenance overhead of custom action - Uses latest stable official action version - Reduces CI complexity by removing redundant Python setup steps - Maintains all existing functionality while improving performance ## Checklist - [x] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:48:00 -05:00
yindo closed this issue 2026-02-21 20:48:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#30672