Squashed 'vendor/dumas_h3_continuum/' content from commit d07ed31
git-subtree-dir: vendor/dumas_h3_continuum git-subtree-split: d07ed31b442d283d6a1740f875a843b9feda4c91
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
param(
|
||||
[string]$Python = 'python',
|
||||
[string]$ComfyRoot = '',
|
||||
[switch]$SkipTests,
|
||||
[switch]$SkipRuntime
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$repository = Split-Path -Parent $PSScriptRoot
|
||||
Push-Location $repository
|
||||
try {
|
||||
& $Python -m compileall -q .
|
||||
if ($LASTEXITCODE -ne 0) { throw 'compileall failed' }
|
||||
|
||||
if (-not $SkipTests) {
|
||||
& $Python -m pytest -q
|
||||
if ($LASTEXITCODE -ne 0) { throw 'pytest failed' }
|
||||
}
|
||||
|
||||
if (-not $SkipRuntime) {
|
||||
$arguments = @('tools/verify_runtime.py')
|
||||
if ($ComfyRoot) { $arguments += @('--comfy-root', $ComfyRoot) }
|
||||
& $Python @arguments
|
||||
if ($LASTEXITCODE -ne 0) { throw 'runtime verification failed' }
|
||||
}
|
||||
}
|
||||
finally {
|
||||
Pop-Location
|
||||
}
|
||||
Reference in New Issue
Block a user