From f3e758c2fc0fceb8960d8e9b79eff11a21787478 Mon Sep 17 00:00:00 2001 From: James Parrott <80779630+JamesParrott@users.noreply.github.com> Date: Thu, 19 Mar 2026 17:56:27 +0000 Subject: [PATCH] Bump GitHub Actions versions Update workflow and action references to newer GitHub Action releases for compatibility and maintenance. Changed actions/checkout from v4 -> v6, actions/setup-python from v5 -> v6, and actions/upload-artifact from v4 -> v7 across the repository. Modified files: .github/actions/build_wheel_and_sdist/action.yml, .github/actions/test/action.yml, .github/workflows/deploy.yml, .github/workflows/run_checks_build_and_test.yml, and .github/workflows/speed_test.yml. Also adjusted related comments in the action ymls. --- .github/actions/build_wheel_and_sdist/action.yml | 6 +++--- .github/actions/test/action.yml | 6 +++--- .github/workflows/deploy.yml | 4 ++-- .github/workflows/run_checks_build_and_test.yml | 14 +++++++------- .github/workflows/speed_test.yml | 10 +++++----- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/actions/build_wheel_and_sdist/action.yml b/.github/actions/build_wheel_and_sdist/action.yml index 8c2b3b8..4cc69f5 100644 --- a/.github/actions/build_wheel_and_sdist/action.yml +++ b/.github/actions/build_wheel_and_sdist/action.yml @@ -11,7 +11,7 @@ runs: # The PyShp repo is required to already be checked out into ., # e.g. by the calling workflow using: # steps: - # - uses: actions/checkout@v4 + # - uses: actions/checkout@v6 # # and then calling this Action with: # - name: Run tests @@ -21,7 +21,7 @@ runs: # with "python" and "pip" on the system Path # (so that this custom Action can be used with both reproducible # Pythons from Python docker images, and more frequently deprecated Pythons - # from - uses: actions/setup-python@v5) + # from - uses: actions/setup-python@v6) - name: Install build (PyPA's pyproject-build) shell: bash @@ -41,7 +41,7 @@ runs: run: python -m build - name: Upload built distributions - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v7 with: name: PyShp_wheel_and_sdist path: dist \ No newline at end of file diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index e1dc3ca..c220b92 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -27,7 +27,7 @@ runs: # and the wheel to be tested in ./dist within it. # e.g. by the calling workflow using: # steps: - # - uses: actions/checkout@v4 + # - uses: actions/checkout@v6 # with: # path: ./Pyshp # @@ -47,12 +47,12 @@ runs: # with "python" and "pip" on the system Path # (so that this custom Action can be used with both reproducible # Pythons from Python docker images, and more frequently deprecated Pythons - # from - uses: actions/setup-python@v5) + # from - uses: actions/setup-python@v6) - name: Checkout shapefiles and zip file artefacts repo if: ${{ inputs.replace_remote_urls_with_localhost == 'yes' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: JamesParrott/PyShp_test_shapefile path: ./PyShp_test_shapefile diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0ddd8b7..e542193 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -23,9 +23,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: '3.x' diff --git a/.github/workflows/run_checks_build_and_test.yml b/.github/workflows/run_checks_build_and_test.yml index 85bde8f..d21d908 100644 --- a/.github/workflows/run_checks_build_and_test.yml +++ b/.github/workflows/run_checks_build_and_test.yml @@ -12,14 +12,14 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - uses: pre-commit/action@v3.0.1 mypy-strict: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: "3.13" - name: Install mypy @@ -31,8 +31,8 @@ jobs: build_wheel_and_sdist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 with: python-version: "3.13" - name: Build wheel from the project repo @@ -61,11 +61,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: path: ./Pyshp diff --git a/.github/workflows/speed_test.yml b/.github/workflows/speed_test.yml index 46e7e47..e17138a 100644 --- a/.github/workflows/speed_test.yml +++ b/.github/workflows/speed_test.yml @@ -12,8 +12,8 @@ jobs: build_wheel_and_sdist: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 - name: Build wheel from the project repo uses: ./.github/actions/build_wheel_and_sdist @@ -34,7 +34,7 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/setup-python@v5 + - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} @@ -51,14 +51,14 @@ jobs: WHEEL_NAME=$(ls pyshp-*py3-none-any.whl) python -m pip install $WHEEL_NAME[test] - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 with: path: ./Pyshp - name: Checkout shapefiles and zip file artefacts repo - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: JamesParrott/PyShp_test_shapefile path: ./PyShp_test_shapefile