CI Pipeline workflow
The CI Pipeline workflow lives in .github/workflows/ci.yml. Its Repository checks job runs on Ubuntu and uses the default settings for j178/prek-action@v2, which runs Prek across tracked files with --all-files and shows the diff when a hook fails. To test your Python project's behavior, add a test step.
When it runs
- A push to
main. - A pull request targeting
mainthat is opened, updated, reopened, or marked ready for review. - A manual run from Actions → CI Pipeline → Run workflow. GitHub shows this option when the workflow is on the default branch and your account can run it.
A newer run in the same workflow and ref cancels the older run. Pull request checks apply to the latest run, so inspect that run if several commits were pushed close together.
Work with the results
Open Repository checks in the pull request or Actions tab. Identify the failing hook and run it locally. If CI reports that a hook modified files, reproduce and review the changes locally, then commit the corrected files.
If you rename the default branch, update the push and pull request branch filters. To make the job a prerequisite for merging, select it in your GitHub branch rules or ruleset.