26 lines
623 B
YAML
26 lines
623 B
YAML
name: Actions
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint Code (Ruff & Pylint)
|
|
runs-on: docker
|
|
container: www.coastalcommits.com/cswimr/actions:uv
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Install python
|
|
run: uv python install 3.11
|
|
|
|
- name: Install dependencies
|
|
run: uv sync
|
|
|
|
- name: Analysing code with Ruff
|
|
run: uv run ruff check $(git ls-files '*.py')
|
|
continue-on-error: true
|
|
|
|
- name: Analysing code with Pylint
|
|
run: uv run pylint --rcfile=.forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|