ci: add static analysis steps (format+lint+validate yaml)
Some checks failed
/ static_analysis (push) Failing after 1m19s
Some checks failed
/ static_analysis (push) Failing after 1m19s
This commit is contained in:
parent
69454b1074
commit
5a35ee482a
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/ci.yml
Normal file
23
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,23 @@
|
|||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
static_analysis:
|
||||
runs-on: runner-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- name: Linting
|
||||
uses: pre-commit/action@v3.0.1
|
||||
with:
|
||||
extra_args: run ruff --all-files
|
||||
- name: Format
|
||||
uses: pre-commit/action@v3.0.1
|
||||
with:
|
||||
extra_args: run ruff-format --all-files
|
||||
- name: Validate Yaml
|
||||
uses: pre-commit/action@v3.0.1
|
||||
with:
|
||||
extra_args: run check-yaml --all-files
|
||||
|
Loading…
Reference in a new issue