From 9a749949e08dd5b24e6e147055840f7b9aa3d288 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 6 Nov 2026 11:17:32 +0000 Subject: [PATCH] docs-build: add autocti (Nerves+Fit+Array chain) and install arcticpy for it Without arcticpy, autosummary cannot import the arcticpy-backed classes autocti re-exports and their API pages build empty; install it via the canonical action, as lib-tests.yml does, so the check matches what Read the Docs builds. Refs PyAutoLabs/PyAutoCTI#125 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docs-build.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 681a429d..5c01ef45 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -23,7 +23,7 @@ on: workflow_call: inputs: package: - description: "PyAuto package to build docs for: autonerves|autofit|autoarray|autogalaxy|autolens|pyautoscientist (docs-only)" + description: "PyAuto package to build docs for: autonerves|autofit|autoarray|autogalaxy|autolens|autocti|pyautoscientist (docs-only)" required: true type: string @@ -41,6 +41,8 @@ jobs: autoarray) repo=PyAutoArray; deps="PyAutoNerves" ;; autogalaxy) repo=PyAutoGalaxy; deps="PyAutoNerves PyAutoFit PyAutoArray" ;; autolens) repo=PyAutoLens; deps="PyAutoNerves PyAutoFit PyAutoArray PyAutoGalaxy" ;; + # arcticpy is installed by its own step below (autocti only). + autocti) repo=PyAutoCTI; deps="PyAutoNerves PyAutoFit PyAutoArray" ;; # Docs-only repos: no pip package — install docs/requirements.txt. pyautoscientist) repo=PyAutoBrain; deps=""; install=requirements ;; *) echo "::error::unknown package '${{ inputs.package }}'"; exit 1 ;; @@ -72,6 +74,15 @@ jobs: python-version: "3.12" cache: pip + # autocti imports arcticpy lazily, so the build runs without it, but + # autosummary then cannot import the arcticpy-backed classes autocti + # re-exports (TrapInstantCapture, ROEChargeInjection, ...) and those API + # pages come out empty. Install it as lib-tests.yml does, so this check + # sees the same pages Read the Docs (which also installs arcticpy) builds. + - name: Install arcticpy (autocti only — source-only C++ sdist) + if: ${{ inputs.package == 'autocti' }} + uses: PyAutoLabs/PyAutoHeart/.github/actions/install-arcticpy@main + - name: Install (deps + package from source, [optional] + [docs] extras) run: | pip install --upgrade pip setuptools wheel