Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc45c0d6

Browse files
committed
Update first-party GitHub Actions
Update first-party GitHub Actions to avoid warnings about node12 andnode16. * Update actions/checkout from v1 to v4 * Update actions/setup-python from v2/v3 to v5
1 parent50e6253 commitc45c0d6

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)

[8]ページ先頭

©2009-2025 Movatter.jp