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
24 changes: 12 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,17 @@ jobs:
ref: main
path: PyAutoLens
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: PyAutoHands
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: "${{ matrix.project.repository }}"
ref: "${{ matrix.project.ref }}"
path: "${{ matrix.project.path }}"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Build
Expand Down Expand Up @@ -390,15 +390,15 @@ jobs:
path: PyAutoLens
pat: PAT_PYAUTOLABS
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: PyAutoHands
- name: Checkout
run: |
PAT="${{ secrets[matrix.project.pat] }}"
git clone -b "${{ matrix.project.ref }}" "https://$PAT@github.com/${{ matrix.project.repository }}.git" "${{ matrix.project.path }}"
- name: Set up Python 3.12
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Configure Git
Expand Down Expand Up @@ -498,11 +498,11 @@ jobs:
- publish_release_notes
if: "${{ always() && needs.resolve_mode.outputs.rehearsal != 'true' }}"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: PyAutoHands
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Announce release outcome in Slack
Expand Down Expand Up @@ -552,11 +552,11 @@ jobs:
- repo: PyAutoLabs/PyAutoLens
pat: PAT_PYAUTOLABS
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: PyAutoHands
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Publish release notes
Expand Down Expand Up @@ -636,7 +636,7 @@ jobs:
bump_colab_urls: false
write_api_baseline: true
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: PyAutoHands
- name: Checkout
Expand All @@ -647,7 +647,7 @@ jobs:
git config --global user.email "richard@rghsoftware.co.uk"
git config --global user.name "GitHub Actions bot"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Jupyter dependency
Expand Down Expand Up @@ -772,7 +772,7 @@ jobs:
- PyAutoLabs/PyAutoGalaxy
- PyAutoLabs/PyAutoLens
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
path: PyAutoHands
- name: Checkout library
Expand Down
2 changes: 1 addition & 1 deletion autohands/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def copy_to_notebooks(source):
# clears the whole `notebooks/` tree, while `inject_colab_setup` only
# rejects an unknown project deep inside the per-script loop that follows
# it — so running this on an unregistered project deleted 113 tracked
# notebooks in autocti_workspace and *then* aborted. A workspace with a
# notebooks in an unregistered workspace and *then* aborted. A workspace with a
# root `start_here.py` happened to fail safely (that loop injects before
# the rmtree); one without it did not. `build_util.COLAB_PROJECTS` stays
# the single source of truth, and `inject_colab_setup`'s own raise remains
Expand Down
2 changes: 1 addition & 1 deletion tests/test_generate_validates_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
`generate.py` clears the whole ``notebooks/`` tree, and until this was fixed the
only rejection of an unknown project happened inside the per-script loop that
runs *after* that rmtree — so running it on an unregistered project deleted 113
tracked notebooks in `autocti_workspace` and then aborted. These tests pin the
tracked notebooks in an unregistered workspace and then aborted. These tests pin the
ordering, since the failure is invisible in a passing run.

Driven as a subprocess: `generate.py` parses argv and does all its work at
Expand Down