.github/workflows/linting.yml
raw| 1 | name: Linting |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | pull_request: |
| 8 | |
| 9 | jobs: |
| 10 | |
| 11 | flake8: |
| 12 | runs-on: ubuntu-latest |
| 13 | |
| 14 | steps: |
| 15 | - uses: actions/checkout@v2 |
| 16 | |
| 17 | - name: Set up Python |
| 18 | uses: actions/setup-python@v2 |
| 19 | with: |
| 20 | python-version: 3.8 |
| 21 | |
| 22 | - name: Install dependencies |
| 23 | run: | |
| 24 | pip install flake8 |
| 25 | |
| 26 | - name: Run linting |
| 27 | run: | |
| 28 | flake8 . |