@@ -837,6 +837,12 @@ jobs:
837837 package : PyAutoLens
838838 generate_notebooks : false
839839 bump_colab_urls : false
840+ - repository : PyAutoLabs/autolens_assistant
841+ name : autolens
842+ package : PyAutoLens
843+ generate_notebooks : false
844+ bump_colab_urls : false
845+ write_api_baseline : true
840846 steps :
841847 - uses : actions/checkout@v2
842848 if : " ${{ github.event.inputs.skip_release != 'true' }}"
@@ -905,6 +911,39 @@ jobs:
905911 PY
906912 git add version.txt config/general.yaml 2>/dev/null || git add version.txt
907913 git commit -m "Release $VERSION: pin workspace version" || true
914+ - name : Regenerate API audit baseline
915+ if : " ${{ github.event.inputs.skip_release != 'true' && matrix.workspace.write_api_baseline == true }}"
916+ env :
917+ NUMBA_CACHE_DIR : /tmp/numba_cache
918+ MPLCONFIGDIR : /tmp/matplotlib
919+ PYAUTO_SKIP_WORKSPACE_VERSION_CHECK : " 1"
920+ run : |
921+ VERSION="${{ needs.version_number.outputs.version_number }}"
922+ # Install the just-released wheels so the baseline hashes the published
923+ # API surface, then let the assistant regenerate its own baseline (it
924+ # owns the hash format — no reimplementation here).
925+ install_cnt=0
926+ until python3 -m pip install \
927+ --index-url https://test.pypi.org/simple/ \
928+ --extra-index-url https://pypi.org/simple \
929+ "autoconf[optional]==$VERSION" \
930+ "autoarray[optional]==$VERSION" \
931+ "autofit[optional]==$VERSION" \
932+ "autogalaxy[optional]==$VERSION" \
933+ "autolens[optional]==$VERSION"; do
934+ ((install_cnt=install_cnt+1))
935+ if [[ $install_cnt -ge 30 ]]; then
936+ echo "ERROR: Install failed after 30 attempts"
937+ exit 1
938+ fi
939+ sleep 10
940+ done
941+ pip install matplotlib==3.6.0 pynufft==2025.1.1 numba
942+ pushd workspace
943+ python3 work/audit_skill_apis.py --write-baseline
944+ git add wiki/core/api_audit_baseline.json
945+ git commit -m "Release $VERSION: regenerate API audit baseline" || true
946+ popd
908947 - name : Bump Colab URL tag refs
909948 if : " ${{ github.event.inputs.skip_release != 'true' && matrix.workspace.bump_colab_urls == true }}"
910949 run : |
0 commit comments