ci: add pylint in ci

adding pylint in ci.

Closes: https://github.com/rook/rook/issues/9866
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit fd475575ff)
This commit is contained in:
subhamkrai authored and mergify-bot committed 2022-03-14 16:23:25 +00:00
1 parent 5256ee2ee8
commit 2f00c0e655
1 file changed
+22 -1
@@ -1,4 +1,4 @@
name: Yaml Lint
name: Linters
on:
push:
tags:
@@ -29,3 +29,24 @@ jobs:
- name: Lint YAML files
run: yamllint -c .github/workflows/.yamllint deploy/examples/ --no-warnings
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install pylint and requirements
run: |
pip install pylint
pip install pylint --upgrade
pip install requests
- name: Lint Python files
run: pylint $(git ls-files '*.py') -E