-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 1 KB
/
pylint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Pylint
on:
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
name: Get newest code and run pylint
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install Kerberos client
run: |
sudo apt-get install -y libkrb5-dev
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11.x"
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- name: Run pylint
# --fail-under=9.75 - fail if score is below 9.75
# --fail-on=E - fail if there were errors, regardless of the score
# --reports=y - print a report at the end
run: |
python3 -m pylint --version
python3 -m pylint --fail-under=9.75 --fail-on=E --reports=y `find . -type d \( -path ./venv -o -path ./core_lib \) -prune -o -type f | grep .py$ | xargs`