.github/workflows/pre-commit.yaml
raw| 1 | name: pre-commit |
| 2 | on: |
| 3 | pull_request: |
| 4 | push: |
| 5 | branches: [main] |
| 6 | jobs: |
| 7 | pre-commit: |
| 8 | runs-on: ubuntu-latest |
| 9 | steps: |
| 10 | - uses: actions/checkout@v3 |
| 11 | - uses: actions/setup-python@v4 |
| 12 | with: |
| 13 | python-version: '3.10' |
| 14 | cache: 'pip' |
| 15 | cache-dependency-path: 'requirements/*.txt' |
| 16 | - run: pip install -r requirements/style.txt |
| 17 | - uses: pre-commit/[email protected] |