flake8 #75
This file contains hidden or 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: flake8 | |
| on: | |
| schedule: | |
| # flake8 regulary has breaking changes, | |
| # so we re-check regulary as well. | |
| - cron: '0 9 * * 1' | |
| push: | |
| pull_request: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v1 | |
| - name: Set up Python 3.7 | |
| uses: actions/setup-python@v1 | |
| with: | |
| python-version: 3.7 | |
| - name: Update pip and install flake8 | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 flake8-docstrings | |
| echo '##[add-matcher]'$PWD/.github/python.json | |
| - name: Lint with flake8 | |
| run: | | |
| flake8 . |