From d3391ec2eec6f0cdab0fed46001919249b87ec08 Mon Sep 17 00:00:00 2001 From: olivier Date: Mon, 1 Jul 2024 18:55:45 +0100 Subject: [PATCH] register pytest requires_gpu mark --- pyproject.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index db9929f..bc60b71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,10 +28,15 @@ dynamic = ["dependencies", "version"] dependencies = {file = ["requirements.txt"]} version = {attr = "iblsorter.__version__"} - [tool.setuptools] include-package-data = true [tool.setuptools.packages.find] # exclude packages matching these glob patterns include = ["iblsorter", "viz"] + +[tool.pytest.ini_options] +markers = [ + "slow: marks tests as slow (deselect with '-m \"not slow\"')", + "requires_gpu: Tests requires cupy (with gpu & CUDA). Tests that seem pointless without a GPU but still work should *not* use this.", +]