Skip to content

Commit c51f01c

Browse files
authoredApr 4, 2024
Merge pull request #820 from PraveenPenguin/pylint_check
enable pylint github Action check for repo
2 parents 1fac29c + b2ec7f3 commit c51f01c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
 

‎.github/workflows/pylint.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Pylint
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
8+
branches:
9+
- 'master'
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.8", "3.9", "3.10"]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v3
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install pylint
26+
- name: Analysing the code with pylint
27+
run: |
28+
pylint $(git ls-files '*.py')

0 commit comments

Comments
 (0)
Please sign in to comment.