Skip to content

Commit 2c1a717

Browse files
dyollbdzenanz
authored andcommitted
ENH: Upgrade GitHub actions to checkout@v3 and setup-python@v3
Fix `Node.js` warnings linked to GitHub actions: upgrade to `actions/checkout@v3` and `actions/setup-python@v3`. Fixes: ``` cov / build (3.9, ubuntu-latest, pip) Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2, actions/setup-python@v2 ``` raised for example in: https://github.com/InsightSoftwareConsortium/ITKModuleTemplate/actions/runs/3594726041
1 parent 58210dd commit 2c1a717

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/build-test-package.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
cmake-build-type: "MinSizeRel"
3030

3131
steps:
32-
- uses: actions/checkout@v2
32+
- uses: actions/checkout@v3
3333

3434
- name: Set up Python 3.8
35-
uses: actions/setup-python@v2
35+
uses: actions/setup-python@v3
3636
with:
3737
python-version: "3.8"
3838

@@ -146,7 +146,7 @@ jobs:
146146
python-version: ["37", "38", "39", "310", "311"]
147147

148148
steps:
149-
- uses: actions/checkout@v2
149+
- uses: actions/checkout@v3
150150

151151
- name: 'Free up disk space'
152152
run: |
@@ -164,7 +164,7 @@ jobs:
164164
unzstd --version
165165
166166
- name: Set up Python 3.8
167-
uses: actions/setup-python@v2
167+
uses: actions/setup-python@v3
168168
with:
169169
python-version: "3.8"
170170

@@ -207,7 +207,7 @@ jobs:
207207
max-parallel: 2
208208

209209
steps:
210-
- uses: actions/checkout@v2
210+
- uses: actions/checkout@v3
211211

212212
- name: 'Specific XCode version'
213213
run: |
@@ -222,7 +222,7 @@ jobs:
222222
chmod u+x macpython-download-cache-and-build-module-wheels.sh
223223
224224
- name: Set up Python 3.8
225-
uses: actions/setup-python@v2
225+
uses: actions/setup-python@v3
226226
with:
227227
python-version: "3.8"
228228

@@ -255,23 +255,23 @@ jobs:
255255
python-version-minor: ["7", "8", "9", "10", "11"]
256256

257257
steps:
258-
- uses: actions/checkout@v2
258+
- uses: actions/checkout@v3
259259

260260
- name: 'Install Python'
261261
run: |
262262
$pythonArch = "64"
263263
$pythonVersion = "3.${{ matrix.python-version-minor }}"
264264
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/scikit-build/scikit-ci-addons/master/windows/install-python.ps1'))
265265
266-
- uses: actions/setup-python@v2
266+
- uses: actions/setup-python@v3
267267
with:
268268
python-version: '3.x'
269269

270270
- name: Get specific version of CMake, Ninja
271271
uses: lukka/get-cmake@v3.22.2
272272

273273
- name: Set up Python 3.8
274-
uses: actions/setup-python@v2
274+
uses: actions/setup-python@v3
275275
with:
276276
python-version: "3.8"
277277

.github/workflows/clang-format-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v3
1111

1212
- uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master

{{cookiecutter.project_name}}/.github/workflows/clang-format-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v1
10+
- uses: actions/checkout@v3
1111

1212
- uses: InsightSoftwareConsortium/ITKClangFormatLinterAction@master

0 commit comments

Comments
 (0)