

add ci
@7e188a2bfc7b9191659336c7685484b54f68b0bf
+++ .github/workflows/lint.yml
... | ... | @@ -0,0 +1,58 @@ |
1 | +name: lint | |
2 | + | |
3 | +on: | |
4 | + pull_request: | |
5 | + paths-ignore: | |
6 | + - "docs/**" | |
7 | + - "**.md" | |
8 | + | |
9 | +jobs: | |
10 | + ament_lint_general: | |
11 | + runs-on: ${{ matrix.os }} | |
12 | + container: | |
13 | + image: rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest | |
14 | + strategy: | |
15 | + fail-fast: false | |
16 | + matrix: | |
17 | + os: [ubuntu-20.04] | |
18 | + ros_distribution: [galactic] | |
19 | + linter: [copyright, xmllint] | |
20 | + steps: | |
21 | + - uses: actions/checkout@v2 | |
22 | + - uses: ros-tooling/setup-ros@v0.2 | |
23 | + with: | |
24 | + required-ros-distributions: ${{ matrix.ros_distribution }} | |
25 | + - name: Linter | |
26 | + uses: ros-tooling/action-ros-lint@v0.1 | |
27 | + with: | |
28 | + distribution: ${{ matrix.ros_distribution }} | |
29 | + linter: ${{ matrix.linter }} | |
30 | + package-name: | | |
31 | + p9n_interface | |
32 | + p9n_example | |
33 | + p9n_test | |
34 | + | |
35 | + ament_lint_python: | |
36 | + runs-on: ${{ matrix.os }} | |
37 | + container: | |
38 | + image: rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest | |
39 | + strategy: | |
40 | + fail-fast: false | |
41 | + matrix: | |
42 | + os: [ubuntu-20.04] | |
43 | + ros_distribution: [galactic] | |
44 | + linter: [pep257, flake8] | |
45 | + steps: | |
46 | + - uses: actions/checkout@v2 | |
47 | + - uses: ros-tooling/setup-ros@v0.2 | |
48 | + with: | |
49 | + required-ros-distributions: ${{ matrix.ros_distribution }} | |
50 | + - name: Linter | |
51 | + uses: ros-tooling/action-ros-lint@v0.1 | |
52 | + with: | |
53 | + distribution: ${{ matrix.ros_distribution }} | |
54 | + linter: ${{ matrix.linter }} | |
55 | + package-name: | | |
56 | + p9n_interface | |
57 | + p9n_example | |
58 | + p9n_test |
--- p9n_example/launch/display.launch.py
+++ p9n_example/launch/display.launch.py
... | ... | @@ -15,8 +15,8 @@ |
15 | 15 |
from launch import LaunchDescription |
16 | 16 |
from launch.actions import DeclareLaunchArgument |
17 | 17 |
from launch.substitutions import ( |
18 |
- TextSubstitution, |
|
19 | 18 |
LaunchConfiguration, |
19 |
+ TextSubstitution, |
|
20 | 20 |
) |
21 | 21 |
|
22 | 22 |
from launch_ros.actions import ComposableNodeContainer |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?