CalVer CI (release.yml) with stable/dev channels, health endpoint with version/channel/schema_version, JWT secret auto-generation with file persistence, smoke test script + Docker-in-CI, pre-migration snapshot, /api/admin/configure for headless setup, /api/admin/ discover-and-register, /setup wizard, OpenAPI snapshot test, custom connector mount support, CHANGELOG, migration safety tests, startup banner. 663 tests pass (6 new migration safety + 3 OpenAPI snapshot + 1 updated JWT test).
26 lines
689 B
Makefile
26 lines
689 B
Makefile
# Agnes AI Data Analyst — Development Makefile
|
|
|
|
.PHONY: help test lint dev docker update-openapi-snapshot
|
|
|
|
help:
|
|
@echo "Available targets:"
|
|
@echo " make test Run test suite"
|
|
@echo " make dev Start FastAPI dev server"
|
|
@echo " make docker Build and start Docker Compose"
|
|
@echo " make lint Run ruff linter (if installed)"
|
|
|
|
test:
|
|
pytest tests/ -v --tb=short
|
|
|
|
dev:
|
|
uvicorn app.main:app --reload
|
|
|
|
docker:
|
|
docker compose up --build
|
|
|
|
lint:
|
|
@ruff check . 2>/dev/null || echo "ruff not installed: pip install ruff"
|
|
|
|
update-openapi-snapshot:
|
|
TESTING=1 python scripts/generate_openapi.py > tests/snapshots/openapi.json
|
|
@echo "Snapshot updated. Review diff and commit."
|