Improve yaml config file validation and linting #395
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Style | |
on: | |
push: | |
branches: | |
- main | |
- 'version-**' | |
pull_request: | |
jobs: | |
check-style: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.10'] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip install . | |
pip install -r dev-requirements.txt | |
- name: Run black | |
uses: psf/black@stable | |
- name: Run isort | |
run: | | |
isort --check komodo tests | |
- name: Lint with flake8 | |
run: | | |
flake8 --max-line-length 88 | |
- name: pylint | |
run: | | |
pylint komodo tests |