diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a694f85..3e35d2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -390,7 +390,7 @@ jobs: path: PyAutoLens pat: PAT_PYAUTOLABS steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: path: PyAutoHands - name: Checkout @@ -398,7 +398,7 @@ jobs: 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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -772,7 +772,7 @@ jobs: - PyAutoLabs/PyAutoGalaxy - PyAutoLabs/PyAutoLens steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: path: PyAutoHands - name: Checkout library diff --git a/autohands/generate.py b/autohands/generate.py index b4bfb47..c83f6ca 100644 --- a/autohands/generate.py +++ b/autohands/generate.py @@ -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 diff --git a/tests/test_generate_validates_project.py b/tests/test_generate_validates_project.py index 585f676..d765bf7 100644 --- a/tests/test_generate_validates_project.py +++ b/tests/test_generate_validates_project.py @@ -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