actions/linting/pylint.yml

23 lines
551 B
YAML

name: Pylint
on:
push:
paths:
- '**.py'
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: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint
- name: Analysing the code with pylint
run: find . -type f -name "*.py" | xargs pylint