Brian's modified playbook #110
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: Lint code in repository | |
"on": | |
push: | |
branches: | |
- "main" | |
pull_request: | |
jobs: | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install yamllint | |
- name: Linting - YAML | |
run: find . -name '*.yml' | xargs yamllint -s | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install black | |
- name: Linting - black | |
run: black -v --check . | |
pylama: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install pylama | |
- name: Linting - pylama | |
run: pylama -i E501 . |