Skip to content

Bump actions/setup-python from v5 to v6 in /.github/workflows#26

Merged
UltralyticsAssistant merged 2 commits intomainfrom
dependabot/github_actions/bump-actions-setup-python-from-v5-to-v6-in-github-workflows
Apr 3, 2026
Merged

Bump actions/setup-python from v5 to v6 in /.github/workflows#26
UltralyticsAssistant merged 2 commits intomainfrom
dependabot/github_actions/bump-actions-setup-python-from-v5-to-v6-in-github-workflows

Conversation

@UltralyticsAssistant
Copy link
Copy Markdown
Member

@UltralyticsAssistant UltralyticsAssistant commented Apr 2, 2026

Bump actions/setup-python from v5 to v6 in /.github/workflows

This PR updates GitHub Actions references in this repository.

Examples:

  • Branch: actions/checkout@main stays on @main
  • Major tag: actions/checkout@v4 updates to @v5
  • Specific tag: astral-sh/setup-uv@v0.5.0 updates to @v0.9.4
  • SHA pinned: actions/checkout@<sha> # v4.1.0 updates to the latest release SHA and tag comment

Made with ❤️ by Ultralytics Actions

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

🔧 This PR modernizes the repo by upgrading GitHub Actions to setup-python@v6 and updating several predictor files to use newer Python type hint syntax.

📊 Key Changes

  • ⬆️ Updated GitHub Actions workflows in .github/workflows/ci.yml and .github/workflows/push.yml:
    • actions/setup-python@v5actions/setup-python@v6
  • 🧹 Refactored type annotations in prediction scripts for:
    • yolo11n/predict.py
    • yoloe11s/predict.py
    • yolov8s-worldv2/predict.py
  • 🐍 Replaced from typing import Optional with from __future__ import annotations
  • ✨ Simplified optional field annotations:
    • Optional[Path]Path | None
    • Optional[str]str | None

🎯 Purpose & Impact

  • ✅ Keeps CI and release workflows current with the latest GitHub Actions version, helping maintain compatibility and reliability
  • 📘 Makes the Python code cleaner and more modern, aligning with newer Python standards
  • 🛠️ Reduces dependency on older typing syntax, which can improve readability and long-term maintainability
  • 👥 Minimal user-facing change: this is mainly an internal maintenance update, but it helps the repo stay healthy and easier to support over time

@UltralyticsAssistant UltralyticsAssistant merged commit adab3cd into main Apr 3, 2026
10 checks passed
@UltralyticsAssistant UltralyticsAssistant deleted the dependabot/github_actions/bump-actions-setup-python-from-v5-to-v6-in-github-workflows branch April 3, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant