Add pylint & shellcheck
This commit is contained in:
commit
ed2ca91da6
25
pylint.yml
Normal file
25
pylint.yml
Normal file
@ -0,0 +1,25 @@
|
||||
name: Pylint
|
||||
on: [push]
|
||||
jobs:
|
||||
pylint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up Python 3.11
|
||||
run: |
|
||||
apt update
|
||||
apt install -y python3 python3-pip
|
||||
- name: Pip version
|
||||
run: pip --version
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python3 -m pip install --upgrade pip
|
||||
pip install pylint
|
||||
pip install pylint-fail-under
|
||||
- name: Analysing the code with pylint
|
||||
run: |
|
||||
find . -name '*.py' -exec pylint {} \;
|
||||
- name: Analyse code
|
||||
run: |
|
||||
for file in $(find -name '*.py'); do pylint "$file" --fail-under=7.0; done
|
14
shellcheck.yml
Normal file
14
shellcheck.yml
Normal file
@ -0,0 +1,14 @@
|
||||
name: Shellcheck
|
||||
on: [push]
|
||||
jobs:
|
||||
shellcheck:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up shellcheck
|
||||
run: |
|
||||
apt update
|
||||
apt install -y shellcheck
|
||||
- name: Analysing the code with shellcheck
|
||||
run: find . -name '*.sh' -exec shellcheck {} \;
|
Loading…
x
Reference in New Issue
Block a user