| 1 |
name: lint |
| 2 |
|
| 3 |
"on": |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- main |
| 7 |
- dev |
| 8 |
- deps |
| 9 |
pull_request: |
| 10 |
branches: |
| 11 |
- main |
| 12 |
workflow_dispatch: |
| 13 |
|
| 14 |
jobs: |
| 15 |
lint: |
| 16 |
runs-on: ubuntu-latest |
| 17 |
steps: |
| 18 |
- name: check out source |
| 19 |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 |
| 20 |
- name: set up Python |
| 21 |
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c |
| 22 |
with: |
| 23 |
python-version: '3.12' |
| 24 |
cache: pip |
| 25 |
cache-dependency-path: dev-deps/python3.12/test.txt |
| 26 |
- name: install dependencies |
| 27 |
run: | |
| 28 |
python -m pip install -U pip setuptools wheel |
| 29 |
python -m pip install pre-commit |
| 30 |
- name: run pre-commit |
| 31 |
uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 |
| 32 |
with: |
| 33 |
extra_args: --all-files --verbose |
| 34 |
|
| 35 |
permissions: |
| 36 |
contents: read |