ci: update Python version in CI workflows to 3.11

- Changed Python version from 3.10 to 3.11 in ci.yml and publish.yml workflows.
- Updated cache keys and build names accordingly.
- Simplified conditional logic in ros2_instance.py for interface determination.
This commit is contained in:
Xuwznln
2026-03-01 11:17:15 +08:00
parent 34fa239d19
commit 05d33086a9
4 changed files with 18 additions and 21 deletions

View File

@@ -40,11 +40,7 @@ class ROS2MessageInstance(MessageInstance[Any]):
interface = (
"msg"
if ".msg" in module_name
else "srv"
if ".srv" in module_name
else "action"
if ".action" in module_name
else "msg"
else "srv" if ".srv" in module_name else "action" if ".action" in module_name else "msg"
)
return f"{package}/{interface}/{class_name}" if package and class_name else f"{module_name}.{class_name}"