2024-12-05 15:09:48 +01:00
|
|
|
# this doesn't seem to work on PRs from forks
|
|
|
|
# so we use pre-commit.ci instead
|
|
|
|
|
2024-11-29 16:12:49 +01:00
|
|
|
name: 🤸 Run pre-commit on PR
|
2024-11-29 14:49:14 +01:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-11-29 16:12:49 +01:00
|
|
|
- master
|
2024-11-30 16:30:15 +01:00
|
|
|
- release-3_40
|
2024-11-29 14:49:14 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
main:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-12-01 19:45:14 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-12-01 20:39:29 +00:00
|
|
|
- uses: actions/setup-python@v5
|
2024-11-29 14:49:14 +01:00
|
|
|
with:
|
|
|
|
python-version: 3.x
|
|
|
|
- uses: pre-commit/action@v3.0.1
|
|
|
|
- uses: pre-commit-ci/lite-action@v1.1.0
|
|
|
|
if: always()
|