generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 22
37 lines (36 loc) · 944 Bytes
/
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
35
36
37
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.2"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pylint==3.2.7 pytest selenium
- name: Analysing the code with pylint
run: |
pylint -d R0913,R0914,R0915,R1702,W0718,W0719,R0801 $(git ls-files '*.py')