Skip to content

Commit

Permalink
Move ament_flake8 to new job
Browse files Browse the repository at this point in the history
  • Loading branch information
Wiktor-99 committed Jul 15, 2024
1 parent b72142e commit 5c6b5fb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 34 deletions.
7 changes: 0 additions & 7 deletions .github/actions/lint/action.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/actions/lint/run.sh

This file was deleted.

45 changes: 29 additions & 16 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,32 @@ on:
push:

jobs:
lint:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-latest
container:
image: ubuntu:jammy
strategy:
fail-fast: false
matrix:
linter: [xmllint, flake8, pep257]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run linter
uses: ./.github/actions/lint/
env:
LINTER: ${{ matrix.linter }}
ament_lint_general:
name: ament_${{ matrix.linter }}
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest
strategy:
fail-fast: false
matrix:
linter: [xmllint, pep257]
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
with:
linter: ${{ matrix.linter }}
distribution: rolling
package-name: "*"
ament_flake8:
name: ament_flake8
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-noble-ros-rolling-ros-base-latest
steps:
- uses: actions/checkout@v4
- uses: ros-tooling/[email protected]
with:
linter: ${{ matrix.linter }}
distribution: rolling
package-name: "*"
- run: ament_flake8 . --config python_linter.flake8

0 comments on commit 5c6b5fb

Please sign in to comment.