Skip to content

Commit 0ef68ab

Browse files
committed
Fix MCU CI to run on main and enforce linting
Signed-off-by: Javier Balloffet <javier.balloffet@gmail.com>
1 parent 3da85f7 commit 0ef68ab

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/mcu-ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,26 @@ name: MCU CI
3232
on:
3333
push:
3434
branches:
35-
- humble
35+
- main
3636
pull_request:
3737
branches:
38-
- humble
38+
- main
3939
workflow_dispatch:
4040

4141
jobs:
42+
lint:
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- uses: actions/checkout@v3
47+
- uses: actions/setup-python@v4
48+
with:
49+
python-version: '3.9'
50+
- name: Run pre-commit checks (formatting and style linting)
51+
run: |
52+
pip install pre-commit
53+
pre-commit run --show-diff-on-failure --files $(git ls-files andino_firmware)
54+
4255
build_and_test:
4356
runs-on: ubuntu-latest
4457

0 commit comments

Comments
 (0)