Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9f66234
feat(gui): add foundation infrastructure
AliiiBenn Jan 26, 2026
64b82f0
feat(gui): implement all GUI views and main window
AliiiBenn Jan 26, 2026
425b839
test(gui): add comprehensive tests for GUI components
AliiiBenn Jan 26, 2026
64cc496
test(cli): fix pre-existing test bug
AliiiBenn Jan 26, 2026
c809492
fix(gui): add __main__.py for module execution
AliiiBenn Jan 26, 2026
a239f64
feat(ci): add PyInstaller build configuration
AliiiBenn Jan 26, 2026
5e6ff2b
feat(ci): add GitHub Actions workflows for automated builds
AliiiBenn Jan 26, 2026
ddc5ba0
fix(build): correct PyInstaller spec file syntax
AliiiBenn Jan 26, 2026
a5d4ad0
fix(ci): combine build and release in single workflow
AliiiBenn Jan 26, 2026
393f1d8
test(ci): add smoke tests for compiled executable
AliiiBenn Jan 26, 2026
e84b578
docs: update README and add BUILD documentation
AliiiBenn Jan 26, 2026
f1cc5d6
fix(build): use absolute paths in PyInstaller spec file
AliiiBenn Jan 26, 2026
f795820
fix(build): replace __file__ with os.getcwd() in spec file
AliiiBenn Jan 26, 2026
de46b6d
fix(build): remove urllib from excludes - pathlib needs it
AliiiBenn Jan 26, 2026
11c249b
feat(gui): add project creation and open dialogs
AliiiBenn Jan 26, 2026
1d6e217
fix(build): correct excel-to-sql hidden imports
AliiiBenn Jan 26, 2026
c79e332
fix(build): add missing excel_to_sql.auto_pilot to hiddenimports
AliiiBenn Jan 26, 2026
d818815
docs: add issue for excel-to-sql version inconsistency bug
AliiiBenn Jan 26, 2026
ec209e0
chore: update to excel-to-sql 0.4.1 and bump version to 0.7.5
AliiiBenn Jan 26, 2026
66b07c4
fix(build): add all wareflow_analysis modules to hiddenimports
AliiiBenn Jan 26, 2026
8b8717f
fix(build): use collect_submodules for auto-including all packages
AliiiBenn Jan 26, 2026
5853f09
refactor(gui): remove CLI dependency from project creation
AliiiBenn Jan 26, 2026
9000cab
chore: bump version to 0.7.8
AliiiBenn Jan 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions .github/workflows/build-exe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: Build Windows Executable

on:
push:
branches: [ main, develop, 'feature/**' ]
pull_request:
branches: [ main, develop ]
workflow_dispatch:

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -e .

- name: Build executable
run: |
pyinstaller build/gui.spec --clean --noconfirm

- name: Display build info
shell: pwsh
run: |
Write-Host "Build Information"
Write-Host "=================="
$exePath = "dist\Warehouse-GUI.exe"
if (Test-Path $exePath) {
$fileInfo = Get-Item $exePath
Write-Host "File: $($fileInfo.Name)"
Write-Host "Size: $([math]::Round($fileInfo.Length / 1MB, 2)) MB"
Write-Host "Created: $($fileInfo.LastWriteTime)"
Write-Host "Full Path: $($fileInfo.FullName)"
} else {
Write-Host "ERROR: Executable not found!"
exit 1
}

- name: Verify executable
shell: pwsh
run: |
$exePath = "dist\Warehouse-GUI.exe"
if (-not (Test-Path $exePath)) {
Write-Host "ERROR: Executable was not built!"
exit 1
}
# Check file size (should be at least 10 MB)
$fileSize = (Get-Item $exePath).Length
if ($fileSize -lt 10MB) {
Write-Host "WARNING: Executable size is unusually small: $fileSize bytes"
}
Write-Host "Executable verified successfully"

- name: Generate SHA256 checksum
shell: pwsh
run: |
$exePath = "dist\Warehouse-GUI.exe"
$hash = Get-FileHash -Path $exePath -Algorithm SHA256
$checksumPath = "dist\Warehouse-GUI.exe.sha256"
$hash.Hash | Out-File -FilePath $checksumPath -Encoding utf8
Write-Host "Checksum: $($hash.Hash)"
Write-Host "Saved to: $checksumPath"

- name: Generate build metadata
shell: pwsh
run: |
$metadata = @{
"build_date" = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss")
"git_commit" = "${{ github.sha }}"
"git_ref" = "${{ github.ref }}"
"github_run_id" = "${{ github.run_id }}"
"github_run_number" = "${{ github.run_number }}"
}
$metadata | Out-File "dist\build-metadata.txt" -Encoding utf8
Write-Host "Build metadata created"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: wareflow-gui-windows
path: |
dist/Warehouse-GUI.exe
dist/Warehouse-GUI.exe.sha256
dist/build-metadata.txt
retention-days: 30

- name: Upload build summary
uses: actions/upload-artifact@v4
with:
name: build-summary
path: |
dist/*.txt
retention-days: 30
if-no-files-found: ignore
132 changes: 132 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
name: Create Release

on:
push:
tags:
- 'v*.*.*'

permissions:
contents: write

jobs:
build:
runs-on: windows-latest

outputs:
artifact_name: ${{ steps.artifact.outputs.name }}

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -e .

- name: Build executable
run: |
pyinstaller build/gui.spec --clean --noconfirm

- name: Display build info
shell: pwsh
run: |
Write-Host "Build Information"
Write-Host "=================="
$exePath = "dist\Warehouse-GUI.exe"
if (Test-Path $exePath) {
$fileInfo = Get-Item $exePath
Write-Host "File: $($fileInfo.Name)"
Write-Host "Size: $([math]::Round($fileInfo.Length / 1MB, 2)) MB"
Write-Host "Created: $($fileInfo.LastWriteTime)"
}

- name: Verify executable
shell: pwsh
run: |
$exePath = "dist\Warehouse-GUI.exe"
if (-not (Test-Path $exePath)) {
Write-Host "ERROR: Executable was not built!"
exit 1
}
$fileSize = (Get-Item $exePath).Length
if ($fileSize -lt 10MB) {
Write-Host "WARNING: Executable size is unusually small: $fileSize bytes"
}

- name: Generate SHA256 checksum
shell: pwsh
run: |
$exePath = "dist\Warehouse-GUI.exe"
$hash = Get-FileHash -Path $exePath -Algorithm SHA256
$checksumPath = "dist\Warehouse-GUI.exe.sha256"
$hash.Hash | Out-File -FilePath $checksumPath -Encoding utf8
Write-Host "Checksum: $($hash.Hash)"

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: wareflow-gui-windows
path: |
dist/Warehouse-GUI.exe
dist/Warehouse-GUI.exe.sha256
retention-days: 90

- name: Set artifact name
id: artifact
run: echo "name=wareflow-gui-windows" >> $env:GITHUB_OUTPUT

release:
needs: build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.artifact_name }}
path: ./artifacts

- name: Display artifacts
run: |
echo "Downloaded artifacts:"
ls -lh artifacts/

- name: Verify artifacts
run: |
if [ ! -f "artifacts/Warehouse-GUI.exe" ]; then
echo "ERROR: Warehouse-GUI.exe not found!"
exit 1
fi
if [ ! -f "artifacts/Warehouse-GUI.exe.sha256" ]; then
echo "ERROR: Checksum file not found!"
exit 1
fi
echo "All artifacts verified successfully"

- name: Extract version from tag
id: version
run: echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: |
artifacts/Warehouse-GUI.exe
artifacts/Warehouse-GUI.exe.sha256
draft: false
prerelease: false
generate_release_notes: true
name: Wareflow Analysis v${{ steps.version.outputs.version }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Python-generated files
__pycache__/
*.py[oc]
build/
build/__pycache__/
build/built/
dist/
wheels/
*.egg-info
Expand Down
Loading