-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Adjust pre-commit step in CI to run every time, but fast fail if red #5041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like this is really hard when pre-commit and tests are separate GitHub Actions workflows: pre-commit-ci/issues#106 |
Could we have the pre-commit run in each job? Would that make things easier? |
It looks like we're getting a switch to
quoted my comment in #5375 That'll be less steps in total and cancel/rerun would be a single click. |
I'm not sure how to interpret the docs about the The trigger filters are another hurdle: They apply to the workflow but we want to run pre-commit every time. So if we include a pre-commit job in the All in all not elegant either way. |
Update: the |
Second option doesn't sound so bad |
In a glossary PR I merged yesterday the docs step ran, but the pre-commit step did not.
We can easily run the pre-commit also for PRs of new contributors.
Also we should probably fast-fail the CI if the pre-commit is red.
The text was updated successfully, but these errors were encountered: