refactor: Add type annotations to all functions and methods #1586
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: actions/setup-python@v6 | |
with: | |
python-version: '3.10' | |
- uses: pre-commit/action@v3.0.1 | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
# Test supported ROS 2 distributions | |
# https://docs.ros.org/en/rolling/Releases.html | |
# NOTE: Humble and Jazzy do not work on the `ros2` branch, so they are tested in their own branches. | |
- ros: kilted | |
os: ubuntu-24.04 | |
- ros: rolling | |
os: ubuntu-24.04 | |
name: ROS 2 ${{ matrix.ros }} (${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v5 | |
with: | |
path: ros_ws/src | |
- uses: ros-tooling/setup-ros@v0.7 | |
- uses: ros-tooling/action-ros-ci@v0.4 | |
with: | |
target-ros2-distro: ${{ matrix.ros }} |