feat(desktop): add Windows EXE packaging and guarded CI smoke workflow
davoodmehraban89 committed
Oct 31, 2026 at 18:33 UTC
a4b1a7d8a53599537b91e7b8c9851e8b745a1640
1 file changed
+60
.github/workflows/desktop-five-statement-windows-ci.yml
new
+60
@@ -0,0 +1,60 @@
1
+name: Windows Five-Statement Pilot CI (UNRELEASED)
2
+
3
+on:
4
+ pull_request:
5
+ paths:
6
+ - "backend/**"
7
+ - ".github/workflows/desktop-five-statement-windows-ci.yml"
8
+ workflow_dispatch:
9
+
10
+concurrency:
11
+ group: aram-windows-five-pilot-${{ github.event.pull_request.number || github.ref }}
12
+ cancel-in-progress: true
13
+
14
+permissions:
15
+ contents: read
16
+
17
+jobs:
18
+ windows-five-pilot:
19
+ runs-on: windows-latest
20
+ timeout-minutes: 25
21
+ defaults:
22
+ run:
23
+ working-directory: backend
24
+ steps:
25
+ - uses: actions/checkout@v7
26
+ with:
27
+ persist-credentials: false
28
+ - uses: actions/setup-python@v7
29
+ with:
30
+ python-version: "3.12"
31
+ architecture: x64
32
+ cache: pip
33
+ cache-dependency-path: backend/pyproject.toml
34
+ - name: Install backend and Windows packaging tools
35
+ shell: pwsh
36
+ run: python -m pip install -e ".[test]" "pyinstaller>=6.10,<7"
37
+ - name: Run controller and full pipeline integration tests
38
+ shell: pwsh
39
+ run: python -m pytest tests/test_desktop_five_statement.py tests/test_five_statement_pipeline_integration.py tests/test_cross_statement_reconciliation.py
40
+ - name: Exercise native Tk menus and callbacks on Windows
41
+ shell: pwsh
42
+ run: python -m aram_backend.desktop_five_statement --ui-smoke
43
+ - name: Build unsigned Windows EXE
44
+ shell: pwsh
45
+ run: .\desktop\build_five_statement_windows.ps1
46
+ - name: Smoke test frozen executable, headless and native GUI
47
+ shell: pwsh
48
+ run: |
49
+ $exe = ".\dist\AramFivePilot-UNRELEASED.exe"
50
+ $headless = Start-Process -FilePath $exe -ArgumentList "--self-test" -PassThru -Wait
51
+ if ($headless.ExitCode -ne 0) { throw "Frozen EXE self-test exit: $($headless.ExitCode)" }
52
+ $gui = Start-Process -FilePath $exe -ArgumentList "--ui-smoke" -PassThru -Wait
53
+ if ($gui.ExitCode -ne 0) { throw "Frozen EXE GUI smoke exit: $($gui.ExitCode)" }
54
+ - name: Upload unsigned, nonproduction pilot for inspection only
55
+ uses: actions/upload-artifact@v7
56
+ with:
57
+ name: AramFivePilot-UNRELEASED-Windows-x64
58
+ path: backend/dist/AramFivePilot-UNRELEASED.exe
59
+ if-no-files-found: error
60
+ retention-days: 7