Skip to content

Commit c4c7a2e

Browse files
etoyamaclaude
andcommitted
chore(#25): add poe ci task to mirror GitHub Actions locally
- Add install-frontend task (npm ci) - Make build-frontend auto-install deps before build - Add poe ci task: lint + typecheck + test + build-frontend - Document poe ci in CONTRIBUTING.md Closes #25 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 983b108 commit c4c7a2e

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ poe format # Auto-fix lint issues and format
3737
poe typecheck # Type check (ty)
3838
poe test # Run tests (pytest)
3939
poe all # Run lint + typecheck + test
40-
poe build-frontend # Rebuild frontend assets
40+
poe build-frontend # Install deps and build frontend assets
41+
poe ci # Run the full CI pipeline locally (Python + frontend)
4142
```
4243

4344
## Code Style

pyproject.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,24 @@ cmd = "uv run ty check src/"
101101
[tool.poe.tasks.test]
102102
cmd = "uv run pytest -v"
103103

104+
[tool.poe.tasks.install-frontend]
105+
cmd = "npm --prefix frontend ci"
106+
help = "Install frontend dependencies"
107+
104108
[tool.poe.tasks.build-frontend]
105-
cmd = "npm --prefix frontend run build"
106-
help = "Build frontend assets"
109+
sequence = ["install-frontend", {cmd = "npm --prefix frontend run build"}]
110+
help = "Install deps and build frontend assets"
107111

108112
[tool.poe.tasks.build]
109113
sequence = ["build-frontend"]
110114

111115
[tool.poe.tasks.all]
112116
sequence = ["lint", "typecheck", "test"]
113117

118+
[tool.poe.tasks.ci]
119+
sequence = ["lint", "typecheck", "test", "build-frontend"]
120+
help = "Run the full CI pipeline locally (Python + frontend)"
121+
114122
[dependency-groups]
115123
dev = [
116124
"httpx>=0.27",

0 commit comments

Comments
 (0)