Files
my-rook-config/.github/workflows/linters.yaml
T
Alexander Trost a0c1731cb7 docs: use mkdocs and restructure docs
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
(cherry picked from commit 74431443e3)
2022-05-24 15:24:22 -06:00

54 lines
1.1 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
pip install pygit2
- name: Lint Python files
run: pylint $(git ls-files '*.py') -E