Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 ;;
Expand Down Expand Up @@ -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
Expand Down
Loading