seperate the linting runs into their own jobs
This commit is contained in:
parent
e84f1af036
commit
aa4dbe07fd
1 changed files with 23 additions and 3 deletions
|
@ -5,24 +5,44 @@ on:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Lint Code (Ruff, MyPy, & Pylint):
|
Lint Code (Ruff):
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container: ghcr.io/catthehacker/ubuntu:act-latest
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Ruff, MyPy, and Pylint
|
- name: Install Ruff
|
||||||
run: pip install ruff mypy pylint
|
run: pip install ruff
|
||||||
|
|
||||||
- name: Analysing code with Ruff
|
- name: Analysing code with Ruff
|
||||||
run: ruff check $(git ls-files '*.py')
|
run: ruff check $(git ls-files '*.py')
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
Lint Code (MyPy):
|
||||||
|
runs-on: docker
|
||||||
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install MyPy
|
||||||
|
run: pip install mypy
|
||||||
|
|
||||||
- name: Analysing code with MyPy
|
- name: Analysing code with MyPy
|
||||||
run: mypy $(git ls-files '*.py')
|
run: mypy $(git ls-files '*.py')
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
|
Lint Code (Pylint):
|
||||||
|
runs-on: docker
|
||||||
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Pylint
|
||||||
|
run: pip install pylint
|
||||||
|
|
||||||
- name: Analysing code with Pylint
|
- name: Analysing code with Pylint
|
||||||
run: pylint --rcfile=.gitea/workflows/config/.pylintrc $(git ls-files '*.py')
|
run: pylint --rcfile=.gitea/workflows/config/.pylintrc $(git ls-files '*.py')
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
Loading…
Reference in a new issue