Skip to content

Commit d66b199

Browse files
authored
Enhance CI with MKL mode and smoke test for packages
Added steps to set MKL CPU mode for Windows and smoke test imports.
1 parent 50a9bdf commit d66b199

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/wheels.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,20 @@ jobs:
111111
run: |
112112
pip install --no-index --find-links=./wheelhouse pywhispercpp
113113
114+
- name: Force MKL safe CPU mode on Windows
115+
if: contains(matrix.os, 'windows')
116+
shell: pwsh
117+
run: |
118+
Write-Output 'MKL_DEBUG_CPU_TYPE=5' | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
119+
120+
- name: Smoke import numpy and pywhispercpp
121+
run: |
122+
python -c "import sys,platform; import numpy as np; print('python', platform.python_version(), platform.platform()); print('numpy', np.__version__); import pywhispercpp; print('pywhispercpp import OK')"
123+
114124
- name: Run tests
115125
run: |
116126
pytest tests/
117-
127+
118128
119129
upload_all:
120130
name: Upload if release

0 commit comments

Comments
 (0)