-
Notifications
You must be signed in to change notification settings - Fork 95
31 lines (31 loc) · 821 Bytes
/
style.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 .