60cce66993
Tests / test (push) Has been cancelled
导入上游源码,为所有面向用户的品牌显示处添加「增强版 / Enhanced」标识;包含 unitypackage→VRM 的纯色 Toon 材质、兽耳 SpringBone、Unity 描边、UV 接缝白边补偿修复,以及默认不强制 T-pose。146 个单元测试通过。
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
# 推送到 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
|