Skip to content

Commit 2bd9006

Browse files
authored
Merge pull request #8 from RytoEX/update-github-actions
Update first-party GitHub Actions
2 parents 50e6253 + c45c0d6 commit 2bd9006

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/all-lints.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
os: [ubuntu-latest, macos-latest, windows-latest]
1212
python-version: ['3.7', '3.8', '3.9', '3.10']
1313
steps:
14-
- uses: actions/checkout@v1
14+
- uses: actions/checkout@v4
1515
- uses: marian-code/python-lint-annotate@master
1616
with:
1717
python-root-list: "./tests/*.py ./tests/subtest/*.py"

README.md

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

3131
```yml
3232
steps:
33-
- uses: actions/checkout@v1
33+
- uses: actions/checkout@v4
3434
- uses: marian-code/python-lint-annotate@v3
3535
```
3636
3737
Options:
3838
3939
```yml
4040
steps:
41-
- uses: actions/checkout@v1
41+
- uses: actions/checkout@v4
4242
- uses: marian-code/python-lint-annotate@v3
4343
with:
4444
python-root-list: "src/ tests/*" # accepts wildcards
@@ -54,7 +54,7 @@ steps:
5454
5555
## Details
5656
57-
Uses `actions/setup-python@v2`. Only python `3.7` - `3.10` version are tested since
57+
Uses `actions/setup-python@v5`. Only python `3.7` - `3.10` version are tested since
5858
they are by far most common now. Other python `3.x` versions should also work.
5959
Any python `2.x` versions are unsupported! You can lint on Linux, Windows and MacOS.
6060

@@ -73,9 +73,9 @@ isort==5.10.1
7373

7474
## IMPORTANT - test environment
7575

76-
The python version is set by `actions/setup-python@v2` using composite actions. This
76+
The python version is set by `actions/setup-python@v5` using composite actions. This
7777
means that the the action will change python you might have previously set with
78-
`actions/setup-python@v2`. There are two ways to circumvent this.
78+
`actions/setup-python@v5`. There are two ways to circumvent this.
7979

8080
- Keep the lintnig action separated from others
8181
- Use it at the and of your workflow when the change in python version will not
@@ -93,8 +93,8 @@ jobs:
9393
name: Lint Python
9494
runs-on: ubuntu-latest
9595
steps:
96-
- uses: actions/checkout@v1
97-
- uses: actions/setup-python@v2
96+
- uses: actions/checkout@v4
97+
- uses: actions/setup-python@v5
9898
with:
9999
python-version: 3.9
100100
- run: |

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ runs:
8181
using: "composite"
8282
steps:
8383
- name: Setup python
84-
uses: actions/setup-python@v2
84+
uses: actions/setup-python@v5
8585
with:
8686
python-version: ${{ inputs.python-version }}
8787
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@v3
11+
uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0 # This is necessary to get the commits
1414
- name: Set up Python environment
15-
uses: actions/setup-python@v3
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: "3.8"
1818
- name: Get changed python files between base and head

0 commit comments

Comments
 (0)