Skip to content

Commit e32c1d7

Browse files
authored
Update windows_concurrency_test.yml
1 parent eb62f94 commit e32c1d7

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

.github/workflows/windows_concurrency_test.yml

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
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-
101
jobs:
112
test:
123
runs-on: windows-latest
@@ -27,8 +18,9 @@ jobs:
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
}
@@ -72,7 +64,7 @@ jobs:
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

Comments
 (0)