feat: Add CD pipeline with deploy to test target #33

Merged
admin merged 2 commits from feat/cd-pipeline into main 2026-06-11 04:01:37 +00:00

2 Commits

Author SHA1 Message Date
cfdaily d53c3d290f fix(ci): install pytest when pyproject.toml is missing
CI / lint (push) Successful in 7s
CI / lint (pull_request) Successful in 7s
CI / test (push) Successful in 4s
CI / test (pull_request) Successful in 4s
CI / notify-on-failure (push) Successful in 2s
CI / notify-on-failure (pull_request) Successful in 1s
Root cause: ci.yml test job creates .venv but skips dev install when
pyproject.toml is absent, leaving pytest uninstalled. Then .venv/bin/pytest
fails with 'No such file or directory'.

Fix: Install pytest directly when no pyproject.toml, and use /tmp path
to avoid workspace pollution.
2026-06-11 11:15:47 +08:00
cfdaily f8c742ed41 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
- 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