feat(ci): add model/headless verification, use --no-ff merge strategy

- Add verify-image job in release.yml with:
  - Headless environment verification (DISPLAY, Xvfb, LibreOffice, Inkscape, Calibre)
  - Model download verification (HuggingFace cache, ONNX models, offline mode)
  - Basic functionality verification (container startup, tool availability)
- Add Test 3 and Test 4 in upstream-sync.yml for headless/model verification
- Update auto-upstream-sync.yml to use git merge --no-ff for better history tracking
This commit is contained in:
Your Name 2026-01-22 23:51:18 +08:00
parent 89c121bdf9
commit d5c9bfa320
3 changed files with 329 additions and 8 deletions

View file

@ -152,8 +152,8 @@ jobs:
run: |
echo "🔄 Merging upstream/${{ env.UPSTREAM_BRANCH }} into ${{ env.TARGET_BRANCH }}..."
# 嘗試自動 merge
if git merge upstream/${{ env.UPSTREAM_BRANCH }} --no-edit -m "🔄 Auto-merge upstream changes ($(date +'%Y-%m-%d'))"; then
# 嘗試自動 merge(使用 --no-ff 確保創建 merge commit保留完整歷史
if git merge upstream/${{ env.UPSTREAM_BRANCH }} --no-ff --no-edit -m "🔄 Merge upstream/${{ env.UPSTREAM_BRANCH }} ($(date +'%Y-%m-%d'))"; then
echo "✅ Merge successful!"
echo "merge_success=true" >> $GITHUB_OUTPUT
else