20 lines
539 B
YAML
20 lines
539 B
YAML
|
name: Actions
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- 'main'
|
||
|
|
||
|
jobs:
|
||
|
Lint Code (Ruff & Pylint):
|
||
|
runs-on: docker
|
||
|
container: www.coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v3
|
||
|
|
||
|
- name: Analysing code with Ruff
|
||
|
run: ./.venv/bin/ruff check $(git ls-files '*.py')
|
||
|
continue-on-error: true
|
||
|
|
||
|
- name: Analysing code with Pylint
|
||
|
run: ./.venv/bin/pylint --rcfile=.forgejo/workflows/config/.pylintrc $(git ls-files '*.py')
|