Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip

- name: Install dependencies
run: pip install -e ".[dev]"

- name: CI
run: make ci
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: help format lint check fix type-check test clean pre-commit-install pre-commit-run
.PHONY: help format lint check fix type-check test ci clean pre-commit-install pre-commit-run

help: ## Show this help message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
Expand Down Expand Up @@ -49,4 +49,6 @@ clean: ## Remove build artifacts and caches

# ==================== All-in-one ====================

ci: check type-check test ## CI pipeline (check only, no file modification)

all: fix format type-check test ## Fix, format, type-check, and test
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,16 @@ make type-check
# Run tests
make test

# Run all checks
# Run all checks (local: auto-fix + test)
make all

# CI-equivalent checks (no auto-fix; same as GitHub Actions)
make ci
```

Before opening a pull request, run `make ci`. GitHub Actions runs the same
lint, format, type-check, and test checks on pull requests to `main`.

The test suite lives under `tests/` and covers backend contracts, routing
strategies, service discovery, health checks, and PD executors.

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ dependencies = [
"shortuuid>=1.0.0",
"fire>=0.5.0",
"pyyaml>=6.0",
"msgpack>=1.0.0",
"pyzmq>=25.0.0",
]

[project.optional-dependencies]
Expand Down
Loading