ci: add granular github actions for linting and testing
This commit is contained in:
parent
ea05ea9367
commit
e18ee3bb73
2 changed files with 50 additions and 0 deletions
21
.github/workflows/lint.yml
vendored
Normal file
21
.github/workflows/lint.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: Lint
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
|
||||
jobs:
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run Ruff check
|
||||
uses: astral-sh/ruff-action@v1
|
||||
with:
|
||||
args: "check"
|
||||
- name: Run Ruff format check
|
||||
uses: astral-sh/ruff-action@v1
|
||||
with:
|
||||
args: "format --check"
|
||||
Reference in a new issue