Skip to content

Commit

Permalink
Install numpy for unit test in GitHub Action.
Browse files Browse the repository at this point in the history
  • Loading branch information
mliberty1 committed Jun 28, 2024
1 parent fade6b3 commit 2784477
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ jobs:
- name: Install the wheel
run: python -m pip install ${{ steps.find_sdist_filename.outputs.filename }}

- name: Install numpy for unit test
run: python -m pip install numpy

- name: Run python unit tests
run: pytest

Expand Down Expand Up @@ -123,7 +126,7 @@ jobs:
# skip musllinux: build takes too long with default os images.
CIBW_SKIP: 'pp* *musllinux*'
CIBW_BUILD: '${{ matrix.python_version }}-*'
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_REQUIRES: pytest numpy
CIBW_TEST_COMMAND: pytest {package}/test
run: python -m cibuildwheel ${{ steps.find_sdist_filename.outputs.filename }}

Expand Down

0 comments on commit 2784477

Please sign in to comment.