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
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -816,37 +816,49 @@ jobs:
fail-fast: false
matrix:
python-version: [3.12]
# `assistant`: the assistant repo whose colab/contexts.yaml stamps each
# generated notebook's Colab Gemini instructions (PyAutoHands#324).
# Empty = no instructions yet: autogalaxy/autofit mappings land in
# phase 2, and a root without the file would fail generation loudly.
# Merge order: the assistant's colab/contexts.yaml must be on its main
# before this is released (PyAutoBrain -> autolens_assistant -> PyAutoHands).
workspace:
- repository: PyAutoLabs/autofit_workspace
name: autofit
package: PyAutoFit
generate_notebooks: true
bump_colab_urls: true
assistant: ""
- repository: PyAutoLabs/autogalaxy_workspace
name: autogalaxy
package: PyAutoGalaxy
generate_notebooks: true
bump_colab_urls: true
assistant: ""
- repository: PyAutoLabs/autolens_workspace
name: autolens
package: PyAutoLens
generate_notebooks: true
bump_colab_urls: true
assistant: autolens_assistant
- repository: PyAutoLabs/HowToGalaxy
name: howtogalaxy
package: PyAutoGalaxy
generate_notebooks: true
bump_colab_urls: true
assistant: ""
- repository: PyAutoLabs/HowToLens
name: howtolens
package: PyAutoLens
generate_notebooks: true
bump_colab_urls: true
assistant: autolens_assistant
- repository: PyAutoLabs/HowToFit
name: howtofit
package: PyAutoFit
generate_notebooks: true
bump_colab_urls: true
assistant: ""
- repository: PyAutoLabs/euclid_strong_lens_modeling_pipeline
name: euclid_pipeline
package: PyAutoLens
Expand Down Expand Up @@ -884,6 +896,16 @@ jobs:
path: workspace
fetch-depth: 0
persist-credentials: false
- name: Checkout assistant (Colab Gemini instructions)
# Public repo: anonymous read-only, like the workspace checkout above. Only
# its colab/contexts.yaml and skills/ are read, by generate.py.
if: "${{ matrix.workspace.generate_notebooks == true && matrix.workspace.assistant != '' }}"
uses: actions/checkout@v4
with:
repository: PyAutoLabs/${{ matrix.workspace.assistant }}
ref: main
path: assistant
persist-credentials: false
- name: Resolve bare repository name (App token scope)
id: repo
env:
Expand All @@ -909,6 +931,9 @@ jobs:
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)/PyAutoHands
AUTOHANDS_PATH="$(pwd)/PyAutoHands/autohands"
if [ -n "${{ matrix.workspace.assistant }}" ]; then
export PYAUTO_ASSISTANT_ROOT="$(pwd)/assistant"
fi
pushd workspace
python3 "$AUTOHANDS_PATH/generate.py" ${{ matrix.workspace.name }}
# Stage exactly what generate.py produces: the notebooks tree, the
Expand Down
Loading
Loading