2024-04-29 18:46:36 -04:00
|
|
|
name: Actions
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-04-29 18:58:05 -04:00
|
|
|
- 'master'
|
2024-04-29 18:46:36 -04:00
|
|
|
|
|
|
|
jobs:
|
2024-05-08 12:46:36 -04:00
|
|
|
Lint Code (Ruff, MyPy, & Pylint):
|
2024-04-29 18:46:36 -04:00
|
|
|
runs-on: docker
|
2024-04-29 19:03:52 -04:00
|
|
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
2024-04-29 18:46:36 -04:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
2024-05-08 12:46:36 -04:00
|
|
|
- name: Install Ruff, MyPy, and Pylint
|
|
|
|
run: pip install ruff mypy pylint
|
2024-04-29 19:02:53 -04:00
|
|
|
|
2024-04-29 18:46:36 -04:00
|
|
|
- name: Analysing code with Ruff
|
2024-04-29 18:58:40 -04:00
|
|
|
run: ruff check $(git ls-files '*.py')
|
2024-04-29 18:46:36 -04:00
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
- name: Analysing code with Pylint
|
2024-05-08 12:46:36 -04:00
|
|
|
run: pylint --rcfile=.gitea/workflows/config/.pylintrc $(git ls-files '*.py')
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
- name: Analysing code with MyPy
|
|
|
|
run: mypy $(git ls-files '*.py')
|
|
|
|
continue-on-error: true
|