2021-10-24 04:35:42 +02:00
|
|
|
name: Pylint
|
|
|
|
|
2021-10-25 14:10:58 +02:00
|
|
|
# yamllint disable-line rule:truthy
|
|
|
|
on: [push, pull_request]
|
2021-10-24 04:35:42 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2021-10-25 14:10:58 +02:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
- name: Setup Pylint
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2021-10-28 16:44:44 +02:00
|
|
|
pip install pylint pylint-exit
|
2021-10-25 14:10:58 +02:00
|
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run Pylint
|
|
|
|
run: |
|
2021-10-28 16:44:44 +02:00
|
|
|
pylint $(git ls-files '*.py') || pylint-exit $?
|