Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit b452c37

Browse files
authored
Merge pull request #600 from ishanrai05/python-lint
run pylint on pull requests
2 parents f99c3a3 + f4fdb4f commit b452c37

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/python_lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: PyLint test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint-python:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/[email protected]
11+
- name: Get Diff Action
12+
uses: technote-space/[email protected]
13+
with:
14+
SUFFIX_FILTER: .py
15+
- name: Setup Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: 2.7
19+
- name: Install and Pylint
20+
run: |
21+
python2 -m pip install pylint
22+
- name: Lint with pylint
23+
run: |
24+
pylint ${{ env.GIT_DIFF }}
25+
if: env.GIT_DIFF

0 commit comments

Comments
 (0)