1- name : " 🚀 Windows - Omnipkg Demo Test (CI - No Redis)"
2-
3- on :
4- push :
5- branches : [ main ]
6- pull_request :
7- branches : [ main ]
8- workflow_dispatch :
9-
101jobs :
112 test :
123 runs-on : windows-latest
2718 shell : pwsh
2819
2920 - name : Install rich via omnipkg
21+ # Use python -m here for robustness
3022 run : |
31- omnipkg install rich
23+ python -m omnipkg.cli install rich
3224 shell : pwsh
3325
3426 - name : Configure omnipkg for non-interactive use
@@ -52,13 +44,13 @@ jobs:
5244 Write-Host "--- Adopting Python Versions ---"
5345
5446 Write-Host "Adopting Python 3.9..."
55- omnipkg python adopt 3.9 2>&1 | Out-Null
47+ python -m omnipkg.cli python adopt 3.9 2>&1 | Out-Null
5648 if ($LASTEXITCODE -ne 0) {
5749 Write-Host "⚠️ Python 3.9 adoption returned exit code $LASTEXITCODE (continuing anyway)"
5850 }
5951
6052 Write-Host "Adopting Python 3.10..."
61- omnipkg python adopt 3.10 2>&1 | Out-Null
53+ python -m omnipkg.cli python adopt 3.10 2>&1 | Out-Null
6254 if ($LASTEXITCODE -ne 0) {
6355 Write-Host "⚠️ Python 3.10 adoption returned exit code $LASTEXITCODE (continuing anyway)"
6456 }
7264
7365 # Capture output and explicitly check for errors
7466 Write-Host "Getting Python interpreter paths..."
75- $PYTHON_INFO = omnipkg info python 2>&1
67+ $PYTHON_INFO = python -m omnipkg.cli info python 2>&1
7668 $infoExitCode = $LASTEXITCODE
7769
7870 Write-Host "omnipkg info python exit code: $infoExitCode"
@@ -156,7 +148,7 @@ jobs:
156148 run : |
157149 Write-Host "--- Pre-installing test packages ---"
158150
159- $PYTHON_INFO = omnipkg info python 2>&1
151+ $PYTHON_INFO = python -m omnipkg.cli info python 2>&1
160152 if ($LASTEXITCODE -ne 0) {
161153 Write-Host "❌ Failed to get Python info"
162154 exit 1
@@ -198,7 +190,7 @@ jobs:
198190 Write-Host ""
199191
200192 # Run demo with option 8 (non-interactive via stdin)
201- echo "8" | omnipkg demo
193+ echo "8" | python -m omnipkg.cli demo
202194
203195 $exitCode = $LASTEXITCODE
204196 Write-Host ""
0 commit comments