Skip to content

Commit

Permalink
move linters to separate job
Browse files Browse the repository at this point in the history
to run linters for dirrect commit to develop branch

It's squashed commit of:
abe0e8b
df3edcf
  • Loading branch information
yurnov committed Jan 7, 2025
1 parent 7d626fe commit 4420e15
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 20 deletions.
21 changes: 1 addition & 20 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 🏗️ Compile Firmware + Lint Check
name: 🏗️ Compile Firmware
on:
pull_request:
types: [ opened, synchronize, reopened ]
Expand Down Expand Up @@ -85,22 +85,3 @@
with:
name: updater.bin
path: ${{ github.workspace }}/updater.bin
check_flasher:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check flasher with proof-html
uses: anishathalye/proof-html@v2
with:
directory: ${{ github.workspace }}/flasher
run_black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Black in the check mode
uses: psf/black@stable
with:
options: "--check --verbose --line-length 120 --diff --color --target-version py312"
src: ${{ github.workspace }}/deploy
version: "~= 24.0"

28 changes: 28 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 🧹 Lint Check
on:
push:
branches:
- develop
pull_request:
types: [ opened, synchronize, reopened ]
branches:
- develop
jobs:
check_flasher:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check flasher with proof-html
uses: anishathalye/proof-html@v2
with:
directory: ${{ github.workspace }}/flasher
run_black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Black in the check mode
uses: psf/black@stable
with:
options: "--check --verbose --line-length 120 --diff --color --target-version py312"
src: ${{ github.workspace }}/deploy
version: "~= 24.0"

0 comments on commit 4420e15

Please sign in to comment.