feat: add CD pipeline with deploy to test target
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
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
- 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
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
"""Tests for hello module."""
|
||||
from src.hello import greet, health
|
||||
|
||||
|
||||
def test_greet():
|
||||
assert greet("World") == "Hello, World!"
|
||||
|
||||
def test_health():
|
||||
result = health()
|
||||
assert result["status"] == "ok"
|
||||
Reference in New Issue
Block a user