47 lines
879 B
YAML
47 lines
879 B
YAML
---
|
|
|
|
name: AutoLint
|
|
|
|
on:
|
|
push:
|
|
branches: [main, stable]
|
|
pull_request:
|
|
branches: [main, stable]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.10]
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Switch to Current Branch
|
|
run: git checkout ${{ env.BRANCH }}
|
|
shell: bash
|
|
|
|
- name: Install python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install -r requirements_lint.txt
|
|
shell: bash
|
|
|
|
- name: Running PyLint
|
|
run: pylint --recursive=y .
|
|
shell: bash
|
|
|
|
- name: Running YamlLint
|
|
run: yamllint .
|
|
shell: bash
|
|
|
|
- name: Running AnsibleLint
|
|
run: ansible-lint -c .ansible-lint.yml
|
|
shell: bash
|