Skip to content

Commit 68f7991

Browse files
committed
Update first-party GitHub Actions to avoid warnings about node20
Details: * Update actions/checkout from v4 to v6 * Update actions/setup-python from v5 to v6 https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
1 parent 48602b1 commit 68f7991

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/workflows/all-lints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
python-version: 3.10
2626

2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v6
2929
- uses: ./
3030
with:
3131
python-root-list: "./tests/*.py ./tests/subtest/*.py"

.github/workflows/test-python-install.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
env:
1515
python-test-package: python-dummy
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

1919
- name: Install Python if required
2020
if: ${{ matrix.use-external-python }}
21-
uses: actions/setup-python@v5
21+
uses: actions/setup-python@v6
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ Basic:
3232

3333
```yml
3434
steps:
35-
- uses: actions/checkout@v4
35+
- uses: actions/checkout@v6
3636
- uses: marian-code/python-lint-annotate@v4
3737
```
3838
3939
Options:
4040
4141
```yml
4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v6
4444
- uses: marian-code/python-lint-annotate@v4
4545
with:
4646
python-root-list: "src/ tests/*" # accepts wildcards
@@ -56,17 +56,17 @@ steps:
5656
5757
## Details
5858
59-
Uses `actions/setup-python@v5`. Only python `3.8` - `3.12` versions are tested.
59+
Uses `actions/setup-python@v6`. Only python `3.8` - `3.12` versions are tested.
6060
Python `3.x` versions prior to `3.8` are not tested since they are EOL now.
6161
Any python `2.x` versions are unsupported! You can lint on Linux, Windows and MacOS.
6262

6363
The linter versions are defined in [requirements.txt](requirements.txt).
6464

6565
## IMPORTANT - test environment
6666

67-
The python version is set by `actions/setup-python@v5` using composite actions. This
67+
The python version is set by `actions/setup-python@v6` using composite actions. This
6868
means that the the action will change python you might have previously set with
69-
`actions/setup-python@v5`. There are two ways to circumvent this.
69+
`actions/setup-python@v6`. There are two ways to circumvent this.
7070

7171
- Keep the lintnig action separated from others
7272
- Use it at the and of your workflow when the change in python version will not
@@ -84,8 +84,8 @@ jobs:
8484
name: Lint Python
8585
runs-on: ubuntu-latest
8686
steps:
87-
- uses: actions/checkout@v4
88-
- uses: actions/setup-python@v5
87+
- uses: actions/checkout@v6
88+
- uses: actions/setup-python@v6
8989
with:
9090
python-version: 3.9
9191
- run: |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ runs:
8787
steps:
8888
- name: Setup python
8989
if: ${{ ! inputs.use-external-python }}
90-
uses: actions/setup-python@v5
90+
uses: actions/setup-python@v6
9191
with:
9292
python-version: ${{ inputs.python-version }}
9393
architecture: x64

examples/actions-only_changed_files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
name: Lint
99
steps:
1010
- name: Check out source repository
11-
uses: actions/checkout@v4
11+
uses: actions/checkout@v6
1212
with:
1313
fetch-depth: 0 # This is necessary to get the commits
1414
- name: Set up Python environment
15-
uses: actions/setup-python@v5
15+
uses: actions/setup-python@v6
1616
with:
1717
python-version: "3.8"
1818
- name: Get changed python files between base and head

0 commit comments

Comments
 (0)