Files
my-rook-config/.github/workflows/linters.yaml
T
subhamkrai fd475575ff ci: add pylint in ci
adding pylint in ci.

Closes: https://github.com/rook/rook/issues/9866
Signed-off-by: subhamkrai <srai@redhat.com>
2022-03-14 18:58:20 +05:30

53 lines
1.0 KiB
YAML

name: Linters
on:
push:
tags:
- v*
branches:
- master
- release-*
pull_request:
branches:
- master
- release-*
jobs:
yaml-linter:
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 yamllint
run: pip install yamllint
- 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