Skip to content

Add support for Python 3.14 to the project CI - #99

Closed
lormafe34 wants to merge 1 commit into
intra2net:masterfrom
lormafe34:py314-ci-fix
Closed

Add support for Python 3.14 to the project CI#99
lormafe34 wants to merge 1 commit into
intra2net:masterfrom
lormafe34:py314-ci-fix

Conversation

@lormafe34

@lormafe34 lormafe34 commented Sep 3, 2026

Copy link
Copy Markdown

Copied from #87 for local fixes before submitting back upstream.

Summary by CodeRabbit

  • Bug Fixes

    • Improved error handling when AutoPy is unavailable, providing a clearer setup message instead of exposing a raw import error.
  • Compatibility

    • Added support for Python 3.14 with updated backend dependency versions.
    • Updated AutoPy to version 4.0.2.
    • Improved compatibility across supported Python environments and platforms.
  • Testing

    • Added Python 3.14 to the Linux CI test matrix.
    • Improved test handling when AutoPy is unavailable or disabled.

@lormafe34 lormafe34 closed this Sep 3, 2026
@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: d6ab91a1-962e-4d11-8b90-8d19777480a5

📥 Commits

Reviewing files that changed from the base of the PR and between 596b89b and 3705c57.

📒 Files selected for processing (6)
  • .github/workflows/ci.yml
  • guibot/controller.py
  • packaging/pip_requirements.txt
  • tests/test_controller.py
  • tests/test_interfaces.py
  • tests/test_region_control.py

📝 Walkthrough

Walkthrough

The change adds Python 3.14 to CI, updates backend dependency markers and versions, converts missing AutoPy imports into UninitializedBackendError, and skips backend-dependent tests when AutoPy is disabled or unavailable.

Changes

Python and AutoPy compatibility

Layer / File(s) Summary
Python 3.14 package and CI support
.github/workflows/ci.yml, packaging/pip_requirements.txt
CI now tests Python 3.14. Dependency markers provide Python 3.14-compatible versions for AutoPy, NumPy, OpenCV, Torch, and TorchVision.
AutoPy backend handling and test gating
guibot/controller.py, tests/test_controller.py, tests/test_interfaces.py, tests/test_region_control.py
Missing AutoPy now raises UninitializedBackendError. Backend-dependent tests skip when AutoPy is disabled or unavailable, and the keymap test checks for the optional AlT attribute.

Estimated code review effort: 2 (Simple) | ~10 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lormafe34

Copy link
Copy Markdown
Author

Sorry about this — I accidentally selected the wrong base repository when creating this pull request. This was meant to be opened against my own fork (lormafe34/guibot) for local testing, not directly against intra2net/guibot. I've closed it now. My original PR #87 is still the one I'm actively working on. Apologies for the confusion.

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