Skip to content

Commit

Permalink
Just install pytest when needed by cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescAlted committed Mar 24, 2023
1 parent c1b9ee9 commit f5fbba3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/cibuildwheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ jobs:
python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: 'cp38-win_amd64 cp39-win_amd64 cp310-win_amd64 cp311-win_amd64'
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: python -m pytest -m "not heavy" {project}/tests
CIBW_BUILD_VERBOSITY: 1

Expand All @@ -80,6 +81,7 @@ jobs:
CIBW_BUILD: 'cp38-* cp39-* cp310-* cp311-*'
CIBW_SKIP: '*-manylinux*_i686 *-musllinux_* ${{ env.CIBW_SKIP}}'
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: python -m pytest -m "not heavy" {project}/tests
CIBW_BUILD_VERBOSITY: 1
CIBW_ARCHS_MACOS: "x86_64 arm64"
Expand Down
1 change: 0 additions & 1 deletion requirements-runtime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ ndindex>=1.4
numpy>=1.20.3
py-cpuinfo
rich
pytest

0 comments on commit f5fbba3

Please sign in to comment.