Skip to content

Commit 5302094

Browse files
committed
fix: load native runtimes before PyQt in release smoke tests
1 parent 3920b3a commit 5302094

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,17 @@ jobs:
147147
run: |
148148
$ErrorActionPreference = 'Stop'
149149
$python = Join-Path $env:PORTABLE_DIR 'packaging\python\python.exe'
150-
& $python -c "import PyQt6, torch, onnxruntime; print(torch.__version__, onnxruntime.__version__)"
150+
# PyQt6 must load last; its Qt DLL paths can break torch/onnxruntime resolution on Windows.
151+
& $python -c "import torch, onnxruntime, PyQt6; print(torch.__version__, onnxruntime.__version__)"
151152
if ($LASTEXITCODE -ne 0) { throw 'Bundled runtime import smoke test failed.' }
152153
- name: Smoke test AMD bundled runtime metadata
153154
if: ${{ matrix.variant == 'amd' }}
154155
shell: pwsh
155156
run: |
156157
$ErrorActionPreference = 'Stop'
157158
$python = Join-Path $env:PORTABLE_DIR 'packaging\python\python.exe'
158-
& $python -c "from importlib.metadata import version; import PyQt6, onnxruntime; v = version('torch'); assert 'rocm7.2.1' in v, v; print(v, onnxruntime.__version__)"
159+
# PyQt6 must load last; its Qt DLL paths can break onnxruntime resolution on Windows.
160+
& $python -c "from importlib.metadata import version; import onnxruntime, PyQt6; v = version('torch'); assert 'rocm7.2.1' in v, v; print(v, onnxruntime.__version__)"
159161
if ($LASTEXITCODE -ne 0) { throw 'AMD bundled runtime metadata smoke test failed.' }
160162
- name: Archive ${{ matrix.variant }} portable package
161163
shell: pwsh

0 commit comments

Comments
 (0)