@@ -43,35 +43,60 @@ jobs:
43
43
conda config --add channels conda-forge
44
44
conda config --set channel_priority strict
45
45
conda install -y sleef numpy
46
+ conda list
47
+ if [ ! -f "$CONDA_PREFIX/Library/include/sleef.h" ]; then
48
+ echo "sleef.h not found. Installation may have failed."
49
+ exit 1
50
+ fi
51
+ ls -l "$CONDA_PREFIX/Library/include/sleef.h"
52
+ ls -l "$CONDA_PREFIX/Library/lib/sleef"*
46
53
47
- - name : Install cibuildwheel
54
+ - name : Setup build environment
55
+ shell : pwsh
56
+ run : |
57
+ $env:INCLUDE += ";$env:CONDA_PREFIX\Library\include"
58
+ $env:LIB += ";$env:CONDA_PREFIX\Library\lib"
59
+ $env:PATH = "$env:CONDA_PREFIX\Library\bin;$env:PATH"
60
+ echo "INCLUDE=$env:INCLUDE" >> $env:GITHUB_ENV
61
+ echo "LIB=$env:LIB" >> $env:GITHUB_ENV
62
+ echo "PATH=$env:PATH" >> $env:GITHUB_ENV
63
+
64
+ - name : Install build dependencies
48
65
shell : bash -l {0}
49
66
run : |
50
67
pip install -U pip
51
- pip install cibuildwheel==2.20.0
68
+ pip install cibuildwheel==2.20.0 ninja meson meson-python numpy delvewheel pytest
52
69
53
70
- name : Build wheels
54
71
env :
55
72
CIBW_BUILD : ' cp310-* cp311-* cp312-*'
56
73
CIBW_SKIP : ' pp* cp36-* cp37-* cp38-* cp39-* cp313-*'
57
74
CIBW_ARCHS_WINDOWS : ${{ matrix.architecture == 'x86' && 'x86' || 'AMD64' }}
58
- CIBW_BUILD_VERBOSITY : ' 1 '
75
+ CIBW_BUILD_VERBOSITY : ' 3 '
59
76
DISTUTILS_USE_SDK : ' 1'
60
77
MSSdk : ' 1'
61
78
CIBW_BEFORE_BUILD : |
62
- pip install meson meson-python ninja numpy delvewheel pytest
79
+ pip install meson meson-python ninja numpy
63
80
CIBW_REPAIR_WHEEL_COMMAND : ' delvewheel repair -w {dest_dir} {wheel}'
64
81
CIBW_TEST_COMMAND : |
65
82
pip install {package}[test]
66
83
python -m pytest -v {project}/test
67
- CIBW_TEST_EXTRAS : ' test'
84
+ CIBW_TEST_EXTRAS : test
68
85
CIBW_TEST_FAIL_FAST : 1
69
86
shell : pwsh
70
87
run : |
71
88
python -m cibuildwheel --output-dir wheelhouse
72
89
if (-not (Test-Path wheelhouse/*.whl)) { throw "Wheel was not created" }
73
90
working-directory : ./quaddtype
74
91
92
+ - name : Run tests explicitly
93
+ shell : pwsh
94
+ run : |
95
+ $wheel = Get-ChildItem wheelhouse/*.whl | Select-Object -First 1
96
+ pip install $wheel[test]
97
+ python -m pytest -v ./test
98
+ working-directory : ./quaddtype
99
+
75
100
- uses : actions/upload-artifact@v4
76
101
with :
77
102
path : ./quaddtype/wheelhouse/*.whl
0 commit comments