From e8d136621c40154eedd35012a0e8a09d29c87a41 Mon Sep 17 00:00:00 2001 From: Jonas Leitner Date: Wed, 8 Apr 2026 14:11:50 +0200 Subject: [PATCH] add target to install build requirements for cpptests --- .github/workflows/ci.yaml | 4 +++- pyproject.toml | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5859d8f0..16881f2d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -68,7 +68,9 @@ jobs: run: | python -m pytest --allocator=libxm -k "TestFunctionality and h2o_sto3g" - name: Run C++ tests - run: python setup.py cpptest -v + run: | + python -m pip install --user .[cpptest] + python setup.py cpptest -v # Documentation build - name: Dependencies for documentation run: python -m pip install --user .[build_docs] diff --git a/pyproject.toml b/pyproject.toml index dcf2af0a..65dd8676 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,12 @@ dependencies = [ [project.optional-dependencies] tests = ["pytest", "pytest-cov", "pandas >= 0.25.0"] +# building the tests requires the same dependencies as building libadcc +# since we explicity call setup.py +cpptest = [ + "setuptools >= 77.0", + "pybind11 >= 2.6" +] build_docs = [ "sphinx>=2", "breathe", "sphinxcontrib-bibtex", "sphinx-automodapi", "sphinx-rtd-theme"