From 3da19ca386cd254f74a53df8d7cf80db29bee528 Mon Sep 17 00:00:00 2001 From: Goran Jelic-Cizmek Date: Sat, 17 Feb 2024 10:01:10 +0100 Subject: [PATCH] Add pytest tests --- pyproject.toml | 6 +++++- setup.cfg | 3 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 69b371e806..c43d1028ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" } @@ -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" diff --git a/setup.cfg b/setup.cfg index 9de58dd72a..54a600626f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,3 @@ -[tool:pytest] -testpaths = test/unit/pybind - [doctest] builder = doctest