| 1 | name: Code Style |
| 2 | |
| 3 | # yamllint disable-line rule:truthy |
| 4 | on: |
| 5 | push: |
| 6 | branches: master |
| 7 | pull_request: |
| 8 | |
| 9 | jobs: |
| 10 | code-style: |
| 11 | name: Code Style |
| 12 | runs-on: ubuntu-latest |
| 13 | steps: |
| 14 | - name: Checkout |
| 15 | uses: actions/checkout@v2 |
| 16 | - name: Set up Python |
| 17 | uses: actions/setup-python@v2 |
| 18 | with: |
| 19 | python-version: 3.7 |
| 20 | - name: Install dependencies |
| 21 | run: | |
| 22 | python -m pip install --upgrade pip |
| 23 | pip install pre-commit |
| 24 | - name: Run pre-commit |
| 25 | run: | |
| 26 | pre-commit run --all-files |