@@ -15,28 +15,19 @@ jobs:
1515 CIBW_ARCHS_LINUX : ${{ matrix.arch }}
1616 CIBW_ARCHS_MACOS : " x86_64 arm64"
1717 CIBW_ENABLE : cpython-freethreading
18- # Ensure cibuildwheel uses correct NumPy in isolated builds too
19- CIBW_BEFORE_BUILD : |
20- pip install --upgrade pip
21- if [ -n "${{ matrix.numpy-version }}" ]; then
22- pip install --force-reinstall "numpy==${{ matrix.numpy-version }}.*"
23- else
24- pip install --upgrade numpy
25- fi
26- python -c "import numpy; print('Using NumPy', numpy.__version__)"
2718 strategy :
2819 fail-fast : false
2920 matrix :
3021 include :
31- # Linux x86_64 builds (latest NumPy)
22+ # Linux x86_64 builds
3223 - os : ubuntu-latest
3324 arch : x86_64
3425 artifact_name : " linux-x86_64"
3526
36- # Linux x86_64 with NumPy 1.26
27+ # Linux x86_64 with numpy 1.23
3728 - os : ubuntu-latest
3829 arch : x86_64
39- artifact_name : " linux-x86_64_numpy1_26 "
30+ artifact_name : " linux-x86_64_numpy1_23 "
4031 numpy-version : " 1.26"
4132
4233 # Linux ARM64 builds (native runners)
@@ -53,30 +44,23 @@ jobs:
5344 - os : macos-latest
5445 arch : x86_64
5546 artifact_name : " macos-universal2"
56-
5747 steps :
5848 - uses : actions/checkout@v3
5949
60- - name : Install Python
61- uses : actions/setup-python@v5
50+ - uses : actions/setup-python@v3
51+ name : Install Python
6252 with :
6353 python-version : ' 3.12'
6454
65- - name : Install specific NumPy version
55+ - name : Install specific numpy version
6656 if : matrix.numpy-version
67- run : |
68- pip install --upgrade pip
69- pip install --force-reinstall "numpy==${{ matrix.numpy-version }}.*"
70- python -c "import numpy; print('Installed NumPy version:', numpy.__version__)"
71- shell : bash
57+ run : pip install "numpy==${{ matrix.numpy-version }}.*"
7258
73- - name : Ensure latest NumPy if not pinned
74- if : ${{ !matrix.numpy-version }}
75- run : |
76- pip install --upgrade pip
77- pip install --upgrade numpy
78- python -c "import numpy; print('Using latest NumPy:', numpy.__version__)"
79- shell : bash
59+ - name : Local Build
60+ run : pip install -e .
61+
62+ - name : Test
63+ run : python -m pytest
8064
8165 - name : Build wheels
8266 uses : pypa/cibuildwheel@v3.1.3
0 commit comments