Skip to content

Add ament_mypy test and fix all mypy errors #1156

Add ament_mypy test and fix all mypy errors

Add ament_mypy test and fix all mypy errors #1156

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- uses: pre-commit/[email protected]
test:
strategy:
fail-fast: false
matrix:
include:
# Test supported ROS 2 distributions
# https://docs.ros.org/en/rolling/Releases.html
# NOTE: Humble does not work on the `ros2` branch, so it is tested in its own branch.
- ros: jazzy
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@v4
with:
path: ros_ws/src
- uses: ros-tooling/[email protected]
- uses: ros-tooling/[email protected]
with:
target-ros2-distro: ${{ matrix.ros }}