Merge pull request #3233 from jctanner/BACKPORT_GITHUB_USER_ID #45
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 | |
on: | |
pull_request: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'docs/**' | |
push: | |
branches: | |
- '**' | |
workflow_dispatch: | |
jobs: | |
linters: | |
# https://github.com/actions/setup-python/issues/355#issuecomment-1335042510 | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.6" | |
# https://stackoverflow.com/a/72611356 | |
- name: downgrade setuptools | |
run: pip install setuptools~=57.5.0 | |
- name: install requirements | |
run: pip install -r requirements/dev-requirements.txt | |
- name: python lint | |
run: make test/flake8 | |
- name: yaml lint | |
run: make test/yamllint |