Skip to content

Commit 5c6b5fb

Browse files
committed
Move ament_flake8 to new job
1 parent b72142e commit 5c6b5fb

File tree

3 files changed

+29
-34
lines changed

3 files changed

+29
-34
lines changed

.github/actions/lint/action.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/actions/lint/run.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/lint.yaml

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,32 @@ on:
44
push:
55

66
jobs:
7-
lint:
8-
name: ament_${{ matrix.linter }}
9-
runs-on: ubuntu-latest
10-
container:
11-
image: ubuntu:jammy
12-
strategy:
13-
fail-fast: false
14-
matrix:
15-
linter: [xmllint, flake8, pep257]
16-
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v3
19-
- name: Run linter
20-
uses: ./.github/actions/lint/
21-
env:
22-
LINTER: ${{ matrix.linter }}
7+
ament_lint_general:
8+
name: ament_${{ matrix.linter }}
9+
runs-on: ubuntu-latest
10+
container:
11+
image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
linter: [xmllint, pep257]
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: ros-tooling/[email protected]
19+
with:
20+
linter: ${{ matrix.linter }}
21+
distribution: rolling
22+
package-name: "*"
23+
ament_flake8:
24+
name: ament_flake8
25+
runs-on: ubuntu-latest
26+
container:
27+
image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: ros-tooling/[email protected]
31+
with:
32+
linter: ${{ matrix.linter }}
33+
distribution: rolling
34+
package-name: "*"
35+
- run: ament_flake8 . --config python_linter.flake8

0 commit comments

Comments
 (0)