Skip to content

Commit

Permalink
Run tests with cibuildwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
SnoopJ committed Oct 10, 2022
1 parent cd23c9c commit f829782
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:

- name: Build wheels
uses: pypa/cibuildwheel@v2.10.2
env:
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest -v {project}/tests
# default values:
# env:
# CIBW_SOME_OPTION: value
# ...
# with:
# package-dir: .
# output-dir: wheelhouse
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ envlist = py{37,38,39,310}, pypy{37,38,39}
deps = pytest
commands = pytest
"""

[tool.cibuildwheel]
test-requires = "pytest"
test-command = "pytest -v {project}/tests"

0 comments on commit f829782

Please sign in to comment.