From a78cb7cfcb5febf7b6da86f645991513bfc064aa Mon Sep 17 00:00:00 2001 From: Zeyu Xu Date: Mon, 21 Oct 2024 16:26:31 +0200 Subject: [PATCH] update for pytest --- .github/workflows/python-publish.yml | 3 ++- pyproject.toml | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a192868..e33147d 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -50,7 +50,8 @@ jobs: - name: Test with pytest run: | pip install -U pytest setuptools build wheel twine - pytest + ls -l deism/tests + pytest -v deism/tests # Check the built package - name: Check the package files diff --git a/pyproject.toml b/pyproject.toml index eb7ff79..a79f5ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,6 +4,11 @@ requires = ["setuptools", "wheel", "numpy>=1.13.0", "Cython", "pybind11>=2.2"] build-backend = "setuptools.build_meta" +[tool.pytest.ini_options] +testpaths = [ + "deism/tests" # Path to your test directory +] + [project] name = "deism" dynamic = ["version"]