Trying to build in docker #530
Workflow file for this run
This file contains 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: Test diagnostics | |
on: | |
pull_request: | |
push: | |
branches: | |
- ros2 | |
schedule: | |
# Run every week at 20:00 on Sunday | |
- cron: "0 20 * * 0" | |
jobs: | |
build_and_test: | |
name: ${{ matrix.package }} on ${{ matrix.distro }} | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
[ | |
diagnostic_aggregator, | |
diagnostic_common_diagnostics, | |
diagnostic_updater, | |
self_test, | |
] | |
distro: [humble, iron, rolling] | |
include: | |
- distro: humble | |
os: 22.04 | |
- distro: iron | |
os: 22.04 | |
- distro: rolling | |
os: 24.04 | |
runs-on: ubuntu-latest | |
container: ubuntu:${{ matrix.os }} | |
steps: | |
- uses: ros-tooling/setup-ros@christophebedard/ubuntu-noble-rolling | |
- run: | |
sudo apt install -y python3-pip | |
pip3 install flake8<5 # fix flake8.exceptions.FailedToLoadPlugin: Flake8 failed to load plugin "pycodestyle" due to cannot import name 'missing_whitespace_around_operator' from 'pycodestyle' (/usr/lib/python3/dist-packages/pycodestyle.py). | |
if: ${{ matrix.os }} == '24.04' | |
- uses: ros-tooling/action-ros-ci@master | |
with: | |
target-ros2-distro: ${{ matrix.distro }} | |
package-name: ${{ matrix.package }} | |
# vcs-repo-file-url: | | |
# https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos |