Note: This is a living document that will be refined as the project evolves.
Quick reference for setting up GitHub workflows and branch protection for the MLPerf Inference Endpoint project.
Runs pre-commit hooks (ruff, formatters) on every PR and push.
Automatically requests code reviews on new PRs.
Runs pytest test suite and generates coverage reports.
Checks contributor license agreement requirements.
Standardized PR description template.
Settings → Branches → Add rule:
- Branch pattern:
main - ✓ Require PR before merging (1 approval)
- ✓ Require status checks: Pre-commit, Tests, cla-bot
- ✓ Require conversation resolution
- ✓ Auto-delete head branches
Settings → General → Pull Requests:
- Enable squash merging, merge commits, and rebase merging
- Enable auto-delete of head branches
Settings → Actions → General:
- Allow all actions and reusable workflows
- Enable read and write permissions (for auto-reviewer)
# Create test branch
git checkout -b feature/test-setup
git push origin feature/test-setup
# Create PR and verify:
# - PR template loads
# - Workflows trigger
# - Branch protection enforcedEdit .github/workflows/auto-review.yml:
const defaultReviewers = ["username1", "username2"];Edit .github/pull_request_template.md for project-specific requirements.