Skip to content

Pylint

Pylint #967

Workflow file for this run

name: Pylint
on:
# Run tests on each commit, newly opened/reopened PR, and
# PR review submission (e.g. approval)
workflow_dispatch:
push:
paths:
- "**.py"
pull_request:
types: [opened, reopened]
branches:
- "main"
paths:
- "**.py"
pull_request_review:
types: [submitted]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.9.19"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint pytest selenium
- name: Analysing the code with pylint
run: |
pylint -d R0913,R0914,R0915,R1702,W0718,W0719,R0801 $(git ls-files '*.py')