Skip to content

Commit 0e827b1

Browse files
committed
Force tests with numpy 1.26
1 parent ed43557 commit 0e827b1

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,15 @@ jobs:
5656
if: matrix.numpy-version
5757
run: pip install "numpy==${{ matrix.numpy-version }}.*"
5858

59-
- name: Local Build
60-
run: pip install -e .
61-
62-
- name: Test
63-
run: python -m pytest
64-
6559
- name: Build wheels
6660
uses: pypa/cibuildwheel@v3.1.3
61+
env:
62+
CIBW_BEFORE_BUILD: |
63+
if [ -n "${{ matrix.numpy-version }}" ]; then
64+
pip install --force-reinstall "numpy==${{ matrix.numpy-version }}.*"
65+
python -c "import numpy; print('cibuildwheel NumPy version:', numpy.__version__)"
66+
fi
67+
6768
6869
- name: Make sdist
6970
if: ${{ matrix.os == 'windows-latest' }}

0 commit comments

Comments
 (0)