ci: add fresh install package smoke test
Windows Package CI / package-fresh-install (push) Waiting to run
Windows Package CI / package-fresh-install (push) Waiting to run
This commit is contained in:
1 parent
f5a77867ee
commit
7745f9a57f
4 files changed
+436
No files matched your search
@@ -0,0 +1,38 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
def test_fresh_install_smoke_script_covers_new_machine_contract():
|
||||
script = Path("tools/ci/fresh_install_smoke.ps1").read_text(encoding="utf-8")
|
||||
|
||||
assert "tools.distribution_manifest" in script
|
||||
assert "tools.exe_packing" in script
|
||||
assert "Start-Process -FilePath $Installer" in script
|
||||
assert "config\\config.json" in script
|
||||
assert "platform-tools\\adb.exe" in script
|
||||
assert "android-tools\\ADBKeyboard.apk" in script
|
||||
assert "adb.exe\") `\n -Arguments @(\"version\")" in script
|
||||
assert "run_cli.exe\") `\n -Arguments @(\"--help\")" in script
|
||||
assert "cli_fails_closed_without_license" in script
|
||||
assert "web_gui.exe" in script
|
||||
assert "license-form" in script
|
||||
assert "license-input" in script
|
||||
assert "/api/license" in script
|
||||
assert "/api/start-run" in script
|
||||
assert "license_required" in script
|
||||
assert "DouyinGuajiGUI.exe" in script
|
||||
assert "fresh_install_report.json" in script
|
||||
assert "DOUYIN_DISABLE_AUTO_UPDATE" in script
|
||||
assert "Assert-UnderDirectory $WorkRoot $ArtifactsRoot" in script
|
||||
|
||||
|
||||
def test_windows_package_ci_builds_installer_then_runs_fresh_install_smoke():
|
||||
workflow = Path(".github/workflows/windows-package-ci.yml").read_text(encoding="utf-8")
|
||||
|
||||
assert "runs-on: windows-latest" in workflow
|
||||
assert "choco install innosetup" in workflow
|
||||
assert "packaging\\pyinstaller\\build_windows.ps1 -SkipInstall -ReuseCache" in workflow
|
||||
assert "packaging\\inno\\douyin_guaji.iss" in workflow
|
||||
assert "tools\\ci\\fresh_install_smoke.ps1" in workflow
|
||||
assert "actions/upload-artifact@v4" in workflow
|
||||
Reference in new issue
Block a user