Skip to content

Commit

Permalink
Add linting CI
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Feb 4, 2025
1 parent 6fb5814 commit d5a47e8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: colcon build & test

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

# Cancel previously running PR jobs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

jobs:
lint:
name: Lint sources
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
cache: pip
- name: Install python packages
run: pip install pre-commit
- name: Run linters
run: pre-commit run --all-files --verbose --show-diff-on-failure

0 comments on commit d5a47e8

Please sign in to comment.