Skip to content

Use macos-26 with Python 3.13 for format.yml#199

Merged
glenn-jocher merged 1 commit intomainfrom
macos26-python313
Oct 27, 2025
Merged

Use macos-26 with Python 3.13 for format.yml#199
glenn-jocher merged 1 commit intomainfrom
macos26-python313

Conversation

@glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Oct 27, 2025

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

CI workflow now runs on macOS with Python 3.13 and enables Swift formatting, improving stability and ensuring Swift code is auto-formatted. 🛠️🍎

📊 Key Changes

  • Switch workflow runner from ubuntu-latest to macos-26. 🖥️
  • Add explicit Python setup using actions/setup-python@v6 with python-version: "3.13". 🐍
  • Enable Swift formatting in Ultralytics Actions (swift: true). 🧹
  • Keep existing formatters/checks (Ruff, docformatter, Prettier, codespell, AI labels, PR summaries) as-is. ✅

🎯 Purpose & Impact

  • Resolve docformatter issues seen with Python 3.14 on macOS by pinning to 3.13, improving CI reliability. 🔧
  • Enable automated Swift code formatting for the iOS app, ensuring consistent style across the codebase. 🎨
  • Align CI environment with iOS tooling requirements (macOS), unlocking Swift-specific checks. 🔓
  • Possible trade-offs: slightly longer CI times and use of macOS runner minutes, but fewer formatting-related failures and more consistent code quality. ⏱️✔️

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
@glenn-jocher glenn-jocher temporarily deployed to Release - TestFlight October 27, 2025 20:02 — with GitHub Actions Inactive
@UltralyticsAssistant UltralyticsAssistant added dependencies Dependencies and packages devops GitHub Devops or MLops labels Oct 27, 2025
@UltralyticsAssistant
Copy link
Member

👋 Hello @glenn-jocher, thank you for submitting a ultralytics/yolo-ios-app 🚀 PR! This is an automated review—an Ultralytics engineer will assist shortly. To ensure a seamless integration of your work, please review the following checklist:

  • Define a Purpose: Clearly explain the purpose of your fix or feature in your PR description, and link to any relevant issues. Ensure your commit messages are clear, concise, and adhere to the project's conventions.
  • Synchronize with Source: Confirm your PR is synchronized with the ultralytics/yolo-ios-app main branch. If it's behind, update it by clicking the 'Update branch' button or by running git pull and git merge main locally.
  • Ensure CI Checks Pass: Verify all Ultralytics Continuous Integration (CI) checks are passing. If any checks fail, please address the issues.
  • Update Documentation: Update the relevant documentation for any new or modified features.
  • Add Tests: If applicable, include or update tests to cover your changes, and confirm that all tests are passing.
  • Sign the CLA: Please ensure you have signed our Contributor License Agreement if this is your first Ultralytics PR by writing "I have read the CLA Document and I sign the CLA" in a new message.
  • Minimize Changes: Limit your changes to the minimum necessary for your bug fix or feature addition. "It is not daily increase but daily decrease, hack away the unessential. The closer to the source, the less wastage there is." — Bruce Lee

For more guidance, please refer to our Contributing Guide. Don't hesitate to leave a comment if you have any questions. Thank you for contributing to Ultralytics! 🚀

Copy link
Member

@UltralyticsAssistant UltralyticsAssistant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 PR Review

Made with ❤️ by Ultralytics Actions

Please correct the workflow runner to a supported macOS label so the formatting job can execute successfully.

💬 Posted 1 inline comment

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@glenn-jocher glenn-jocher merged commit f43e8ed into main Oct 27, 2025
7 of 8 checks passed
@glenn-jocher glenn-jocher deleted the macos26-python313 branch October 27, 2025 20:06
@UltralyticsAssistant
Copy link
Member

Fantastic merge, @glenn-jocher! “Great things are done by a series of small things brought together.” — Vincent van Gogh. Your updates in PR #199 for the iOS app CI — shifting to macOS, pinning Python 3.13, and enabling Swift formatting — meaningfully boost reliability and keep our Swift code consistently styled. Thanks for thoughtfully aligning our pipeline with iOS tooling and reducing formatting-related noise. Appreciate the care and momentum this brings. 🚀👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Dependencies and packages devops GitHub Devops or MLops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants