Skip to content

Commit f3e758c

Browse files
committed
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.
1 parent 0314c9d commit f3e758c

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

.github/actions/build_wheel_and_sdist/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ runs:
1111
# The PyShp repo is required to already be checked out into .,
1212
# e.g. by the calling workflow using:
1313
# steps:
14-
# - uses: actions/checkout@v4
14+
# - uses: actions/checkout@v6
1515
#
1616
# and then calling this Action with:
1717
# - name: Run tests
@@ -21,7 +21,7 @@ runs:
2121
# with "python" and "pip" on the system Path
2222
# (so that this custom Action can be used with both reproducible
2323
# Pythons from Python docker images, and more frequently deprecated Pythons
24-
# from - uses: actions/setup-python@v5)
24+
# from - uses: actions/setup-python@v6)
2525

2626
- name: Install build (PyPA's pyproject-build)
2727
shell: bash
@@ -41,7 +41,7 @@ runs:
4141
run: python -m build
4242

4343
- name: Upload built distributions
44-
uses: actions/upload-artifact@v4
44+
uses: actions/upload-artifact@v7
4545
with:
4646
name: PyShp_wheel_and_sdist
4747
path: dist

.github/actions/test/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ runs:
2727
# and the wheel to be tested in ./dist within it.
2828
# e.g. by the calling workflow using:
2929
# steps:
30-
# - uses: actions/checkout@v4
30+
# - uses: actions/checkout@v6
3131
# with:
3232
# path: ./Pyshp
3333
#
@@ -47,12 +47,12 @@ runs:
4747
# with "python" and "pip" on the system Path
4848
# (so that this custom Action can be used with both reproducible
4949
# Pythons from Python docker images, and more frequently deprecated Pythons
50-
# from - uses: actions/setup-python@v5)
50+
# from - uses: actions/setup-python@v6)
5151

5252

5353
- name: Checkout shapefiles and zip file artefacts repo
5454
if: ${{ inputs.replace_remote_urls_with_localhost == 'yes' }}
55-
uses: actions/checkout@v4
55+
uses: actions/checkout@v6
5656
with:
5757
repository: JamesParrott/PyShp_test_shapefile
5858
path: ./PyShp_test_shapefile

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
runs-on: ubuntu-latest
2424

2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727
- name: Set up Python
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: '3.x'
3131

.github/workflows/run_checks_build_and_test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ jobs:
1212
pre-commit:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616
- uses: pre-commit/action@v3.0.1
1717

1818
mypy-strict:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v4
22-
- uses: actions/setup-python@v5
21+
- uses: actions/checkout@v6
22+
- uses: actions/setup-python@v6
2323
with:
2424
python-version: "3.13"
2525
- name: Install mypy
@@ -31,8 +31,8 @@ jobs:
3131
build_wheel_and_sdist:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v4
35-
- uses: actions/setup-python@v5
34+
- uses: actions/checkout@v6
35+
- uses: actions/setup-python@v6
3636
with:
3737
python-version: "3.13"
3838
- name: Build wheel from the project repo
@@ -61,11 +61,11 @@ jobs:
6161

6262
runs-on: ${{ matrix.os }}
6363
steps:
64-
- uses: actions/setup-python@v5
64+
- uses: actions/setup-python@v6
6565
with:
6666
python-version: ${{ matrix.python-version }}
6767

68-
- uses: actions/checkout@v4
68+
- uses: actions/checkout@v6
6969
with:
7070
path: ./Pyshp
7171

.github/workflows/speed_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
build_wheel_and_sdist:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-python@v5
15+
- uses: actions/checkout@v6
16+
- uses: actions/setup-python@v6
1717
- name: Build wheel from the project repo
1818
uses: ./.github/actions/build_wheel_and_sdist
1919

@@ -34,7 +34,7 @@ jobs:
3434

3535
runs-on: ${{ matrix.os }}
3636
steps:
37-
- uses: actions/setup-python@v5
37+
- uses: actions/setup-python@v6
3838
with:
3939
python-version: ${{ matrix.python-version }}
4040

@@ -51,14 +51,14 @@ jobs:
5151
WHEEL_NAME=$(ls pyshp-*py3-none-any.whl)
5252
python -m pip install $WHEEL_NAME[test]
5353
54-
- uses: actions/checkout@v4
54+
- uses: actions/checkout@v6
5555
with:
5656
path: ./Pyshp
5757

5858

5959

6060
- name: Checkout shapefiles and zip file artefacts repo
61-
uses: actions/checkout@v4
61+
uses: actions/checkout@v6
6262
with:
6363
repository: JamesParrott/PyShp_test_shapefile
6464
path: ./PyShp_test_shapefile

0 commit comments

Comments
 (0)