Files
moziplus-v2/src/hello.py
T
cfdaily f8c742ed41
CI / lint (push) Successful in 10s
CI / lint (pull_request) Successful in 6s
CI / test (push) Failing after 4s
CI / test (pull_request) Failing after 4s
CI / notify-on-failure (push) Successful in 2s
CI / notify-on-failure (pull_request) Successful in 2s
feat: add CD pipeline with deploy to test target
- Add src/hello.py and tests/test_hello.py
- Replace deploy placeholder with actual rsync + health check
- Deploy target: ~/.sanguo_projects/moziplus-v2-cd-test/
- Add deploy history recording
- Add failure notification via Issue creation
2026-06-11 10:55:36 +08:00

10 lines
232 B
Python

"""Hello module for CD testing."""
def greet(name: str) -> str:
"""Return greeting message."""
return f"Hello, {name}!"
def health() -> dict:
"""Return health status."""
return {"status": "ok", "version": "1.0.0"}