From 65edea3af4f013dddeeacd82f83b1005e1fcb432 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me>
Date: Mon, 10 Jun 2024 16:04:07 +0200
Subject: [PATCH] feat : enabled tests on the wheels

---
 pyproject.toml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index c3b3645..ba6fb18 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -38,8 +38,16 @@ write_to = "aidge_backend_opencv/_version.py"
 #####################################################
 # CIBUILDWHEEL
 [tool.cibuildwheel]
-build=["cp38-manylinux_x86_64"] # , "cp39-manylinux_x86_64","cp310-manylinux_x86_64"]
 build-frontend = "build"
+test-requires = "pytest"
+test-command = "pytest {package}/aidge_backend_opencv/unit_tests"
+# uncomment to run cibuildwheel locally on selected distros
+# build=[
+#     "cp38-manylinux_x86_64",
+#     "cp39-manylinux_x86_64",
+#     "cp310-manylinux_x86_64"
+# ]
+
 ### AIDGE DEPENDENCIES DECLARATION
 # aidge_core do not rely on any aidge dependency, hence this string is empty
 [tool.cibuildwheel.linux.environment]
-- 
GitLab