初始化 VRMify 增强版(VRMify Enhanced)
Tests / test (push) Has been cancelled

导入上游源码,为所有面向用户的品牌显示处添加「增强版 / Enhanced」标识;包含 unitypackage→VRM 的纯色 Toon 材质、兽耳 SpringBone、Unity 描边、UV 接缝白边补偿修复,以及默认不强制 T-pose。146 个单元测试通过。
This commit is contained in:
2026-11-15 23:21:59 +08:00
commit 60cce66993
114 changed files with 56114 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
# 打 v* tag 时:测试 → 打包 Windows 绿色版 zip → 冒烟测试(tools/smoke_exe.py)→ 建一个草稿 Release(确认后在网页上点发布)。
# 手动运行(workflow_dispatch)只打包,zip 在这次运行的 Artifacts 里,不建 Release。
#
# 改 ui/version.py → 提交 → git tag v0.1.0 → git push origin v0.1.0
name: Release
on:
push:
tags: ["v*"]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.11"
- run: pip install -r requirements-dev.txt
- run: python -m unittest discover -s tests
- name: Build
id: build
shell: pwsh
run: |
$expect = if ("${{ github.ref_type }}" -eq "tag") { "${{ github.ref_name }}" } else { "" }
python tools/build_release.py --expect-version "$expect"
# 打包后的 exe 实际跑一遍:启动、转换合成的 PMX / zip / FBX / unitypackage、校验输出(不过就不建 Release)
- name: Smoke test
run: python tools/smoke_exe.py "${{ steps.build.outputs.zip }}"
# 直接上传 zip 本身(archive: false),下载下来不会是「zip 套 zip」
- uses: actions/upload-artifact@v7
with:
path: ${{ steps.build.outputs.zip }}
archive: false
- name: Draft release
if: github.ref_type == 'tag'
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "${{ github.ref_name }}" "${{ steps.build.outputs.zip }}" --draft `
--title "VRMify 增强版 / VRMify Enhanced ${{ github.ref_name }}" --generate-notes
+45
View File
@@ -0,0 +1,45 @@
# 推送到 main(改了代码时)跑单元测试。用 tests/synth.py 合成的小模型,不需要真实模型;
# 真实模型的回归对比(tools/regress.py)只能在本机跑。
name: Tests
on:
push:
branches: [main]
paths:
- "convert/**"
- "formats/**"
- "ui/**"
- "tests/**"
- "tools/**"
- "requirements*.txt"
- ".github/workflows/test.yml"
pull_request:
paths:
- "convert/**"
- "formats/**"
- "ui/**"
- "tests/**"
- "tools/**"
- "requirements*.txt"
- ".github/workflows/test.yml"
workflow_dispatch:
concurrency:
group: tests-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.11"
# 官方 VRM Schema 校验 + 贴图瘦身;pywebview 只有界面窗口要用,这里不装
- run: pip install "jsonschema>=4.18" "Pillow>=10"
- run: python -m unittest discover -s tests -v