Skip to content

Commit acd7eb0

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

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,9 @@ jobs:
5959
- name: Build wheels
6060
uses: pypa/cibuildwheel@v3.1.3
6161
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-
62+
CIBW_TEST_REQUIRES: "numpy==${{ matrix.numpy-version }}.* pytest"
63+
CIBW_TEST_COMMAND: |
64+
pytest
6865
6966
- name: Make sdist
7067
if: ${{ matrix.os == 'windows-latest' }}

0 commit comments

Comments
 (0)