IndiumRevolt/.forgejo/workflows/workflow.yml

27 lines
623 B
YAML
Raw Permalink Normal View History

2024-11-12 12:55:13 -05:00
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')