Skip to content

Commit

Permalink
Add pytest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Feb 17, 2024
1 parent b0e4b35 commit 3da19ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ NMODL_BUILD_WHEEL = "ON"
[tool.setuptools_scm]

[tool.cibuildwheel]
test-command = "bash {package}/packaging/test_wheel.bash {package}"
test-command = "bash {package}/packaging/test_wheel.bash {package} && pytest {package}/test/unit/pybind"
test-extras = ["test"]

[tool.cibuildwheel.macos]
environment = { PATH = "/opt/homebrew/opt/flex/bin:/opt/homebrew/opt/bison/bin:/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH", MACOSX_DEPLOYMENT_TARGET = "10.15" }
Expand All @@ -62,3 +63,6 @@ config-settings = {build-dir = "_build"}
[tool.cibuildwheel.linux]
before-all = "bash packaging/install_dependencies.sh"
environment = { PATH = "/nmodlwheel/flex/bin:/nmodlwheel/bison/bin:$PATH" }

[tool.pytest]
testpaths = "test/unit/pybind"
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[tool:pytest]
testpaths = test/unit/pybind

[doctest]
builder = doctest

Expand Down

0 comments on commit 3da19ca

Please sign in to comment.