-
Notifications
You must be signed in to change notification settings - Fork 36
39 lines (39 loc) · 1009 Bytes
/
roslint.yaml
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
32
33
34
35
36
37
38
39
name: roslint
on:
pull_request:
paths-ignore:
- '*.md'
- '*LICENSE'
push:
branches: [master]
paths-ignore:
- '*.md'
- '*LICENSE'
workflow_dispatch:
jobs:
lint:
name: ament_${{ matrix.linter }}_${{ matrix.package }}
runs-on: ubuntu-latest
container:
image: ros:rolling-ros-base
strategy:
fail-fast: false
matrix:
linter: [copyright, flake8, pep257, xmllint]
package: [ros2bag_tools, rosbag2_tools]
steps:
-
name: Checkout code
uses: actions/checkout@v4
-
name: Setup ros
uses: ros-tooling/setup-ros@v0.7
-
name: Temporary disbale some flake
run: 'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --fix-broken && sudo apt-get remove python3-flake8-* -y'
-
name: Run linter
uses: ros-tooling/action-ros-lint@master
with:
linter: ${{ matrix.linter }}
package-name: ${{ matrix.package }}