Skip to content
Merged
Show file tree
Hide file tree
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
17 changes: 11 additions & 6 deletions .github/scripts/smoke_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@
# checkout root (the dependency chain is cloned beside `workspace/`).
set -e

# arcticpy (the C++ arctic clocking code) is a hard import of autocti but not
# a pip dependency: its sdist is source-only (needs libgsl-dev + cython) and
# its own requirements downgrade numpy below 2.0.
sudo apt-get update && sudo apt-get install -y libgsl-dev
pip install numpy cython
pip install arcticpy==2.6 --no-build-isolation --no-deps
# arcticpy is NOT installed here. It is a hard import of autocti but not a pip
# dependency, and its recipe (source-only C++ sdist, libgsl-dev, a
# numpy-downgrade trap, --no-build-isolation build deps) is fiddly enough that
# four repos had drifted apart carrying copies of it. It now belongs to the
# organ that owns the reusable workflows:
#
# PyAutoHeart/.github/actions/install-arcticpy
#
# and this workspace asks for it with `arcticpy: true` in
# .github/workflows/smoke_tests.yml, which runs it before this epilogue.
# Everything left in this file is genuinely workspace-specific.

pip install ./PyAutoNerves ./PyAutoFit ./PyAutoArray ./PyAutoCTI
pip install "./PyAutoArray[optional]"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/smoke_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ jobs:
uses: PyAutoLabs/PyAutoHeart/.github/workflows/smoke-tests.yml@main
with:
chain: "PyAutoNerves PyAutoFit PyAutoArray PyAutoCTI"
# `import autocti` needs arcticpy, whose install recipe is owned centrally
# by PyAutoHeart/.github/actions/install-arcticpy rather than copied into
# this workspace's epilogue. Heart runs it before smoke_install.sh.
arcticpy: true
secrets: inherit
20 changes: 15 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ This is the integration-test suite for **PyAutoCTI**, run in CI to verify the co
end-to-end. It is **not** a user-facing workspace — see `../autocti_workspace` for examples and
tutorials. These are the canonical, agent-agnostic instructions for this repo.

Dependencies: `autocti`, `autofit`, `autoarray`, and **arcticpy** (source-only C++ sdist — install
with `pip install arcticpy==2.6 --no-build-isolation --no-deps` after numpy+cython, with
`libgsl-dev` present; see `PyAutoCTI/AGENTS.md`).
Dependencies: `autocti`, `autofit`, `autoarray`, and **arcticpy** (source-only C++ sdist; the
full install recipe is in `PyAutoCTI/AGENTS.md` §arcticpy, and CI runs it from
`PyAutoHeart/.github/actions/install-arcticpy`). Short form:

```bash
sudo apt-get install -y libgsl-dev
pip install --upgrade pip setuptools wheel # setuptools is a BUILD dep; 3.12+ venvs omit it
pip install numpy cython scipy matplotlib
pip install arcticpy==2.6 --no-build-isolation --no-deps
```

## Repository Structure

Expand All @@ -30,8 +37,11 @@ python scripts/dataset_1d/model_fit.py # one script, real search (no env applie
```

CI runs the smoke list through PyAutoHeart's reusable smoke workflow (thin caller in
`.github/workflows/smoke_tests.yml`, chain `PyAutoNerves PyAutoFit PyAutoArray PyAutoCTI`; the
arcticpy build lives in `.github/scripts/smoke_install.sh`).
`.github/workflows/smoke_tests.yml`, chain `PyAutoNerves PyAutoFit PyAutoArray PyAutoCTI`). The
arcticpy build is **not** in `.github/scripts/smoke_install.sh` any more: the caller passes
`arcticpy: true` and Heart runs its own `install-arcticpy` action before the epilogue, so the
recipe has one owner instead of a copy per repo. `smoke_install.sh` now holds only the
workspace-specific chain install.

## Conventions

Expand Down
Loading