Skip to content

Backport #185 to humble #961

Backport #185 to humble

Backport #185 to humble #961

Workflow file for this run

name: style
on:
pull_request:
push:
branches: [ main ]
jobs:
linter:
runs-on: ubuntu-latest
strategy:
matrix:
docker_image: ['ros:humble-ros-base']
container:
image: ${{ matrix.docker_image }}
steps:
- uses: actions/checkout@v2
- name: deps
shell: bash
run: |
sudo apt-get update
sudo apt-get install wget pycodestyle
# Note: Enable this if only cpp files are available for style check
# - name: rmf_uncrustify
# shell: bash
# run: |
# wget https://raw.githubusercontent.com/open-rmf/rmf_utils/master/rmf_utils/test/format/rmf_code_style.cfg
# source /opt/ros/foxy/setup.bash
# ament_uncrustify -c rmf_code_style.cfg
- name: pycodestyle
shell: bash
run: |
pycodestyle .