Skip to content

Commit

Permalink
Merge pull request #273 from yurnov/linters
Browse files Browse the repository at this point in the history
Технічне: невелика реорганізація CI
  • Loading branch information
Foroxon authored Jan 7, 2025
2 parents 7d626fe + 4420e15 commit cc4dcb7
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 cc4dcb7

Please sign in to comment.