feat(v1): add demo runbook and release package
This commit is contained in:
@@ -9,7 +9,7 @@ Set-Location -Path $PSScriptRoot
|
||||
$InstallCmd = 'python -c "import cv2, numpy, ultralytics, PyQt5; print(''required Python packages available'')"'
|
||||
$VerifyCmd = "python -m compileall -q demo"
|
||||
$V1TestCmd = "python -m pytest v1/tests -v"
|
||||
$StartCmd = "Set-Location demo; python main.py"
|
||||
$StartCmd = "python -m v1.app"
|
||||
|
||||
function Invoke-Checked {
|
||||
param([string]$Label, [string]$Command)
|
||||
@@ -22,7 +22,11 @@ function Invoke-Checked {
|
||||
|
||||
Write-Host "==> 当前目录: $($PWD.Path)"
|
||||
Invoke-Checked -Label "检查 Silver Pose Python 依赖" -Command $InstallCmd
|
||||
Invoke-Checked -Label "运行 demo 基线验证" -Command $VerifyCmd
|
||||
if (Test-Path -LiteralPath "demo") {
|
||||
Invoke-Checked -Label "运行 demo 基线验证" -Command $VerifyCmd
|
||||
} else {
|
||||
Write-Host "==> 发布包未包含 demo/,跳过旧基线编译"
|
||||
}
|
||||
Invoke-Checked -Label "运行 V1 单元测试" -Command $V1TestCmd
|
||||
|
||||
Write-Host "==> 图形界面启动命令"
|
||||
|
||||
Reference in New Issue
Block a user