Skip to content

Commit

Permalink
ament linter
Browse files Browse the repository at this point in the history
  • Loading branch information
filiparag committed Dec 5, 2021
1 parent 9428d9e commit 5a820ed
Showing 1 changed file with 13 additions and 23 deletions.
36 changes: 13 additions & 23 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,22 @@ env:
DEBIAN_FRONTEND: noninteractive

jobs:
py-linter:
name: Python code checker
linter:
name: Check code using Ament linter
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Prepare system
run: |
sudo -E apt-get update
sudo -E apt-get install -y flake8 python3-flake8
- name: Run flake8
uses: suo/flake8-github-action@releases/v1
- name: Install ROS2
uses: ros-tooling/[email protected]
with:
checkName: 'py-linter'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
cpp-linter:
name: C and C++ code checker
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: shenxianpeng/cpp-linter-action@master
required-ros-distributions: foxy
- name: Run generic and Python linters
uses: ros-tooling/[email protected]
with:
thread-comments: false
files-changed-only: false
version: 12
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
linter:
- flake8
- mypy
- pep257
- pep8
- xmllint

0 comments on commit 5a820ed

Please sign in to comment.