Skip to content

Commit 20e7165

Browse files
committed
ENH: Use latest actions, do not pin to latest version
The convention of only specifying the MAJOR version is the indicator that the latest version in that series should be used. By not specifying the MINOR and PATCH, the exact versions is not pinned, but the latest in that series is chosen. (i.e. the v5 tag is updated every time a new MINOR or PATCH tag is generated). This allows benefiting from minor patch fixes without needing to update workflows.
1 parent e6bb34d commit 20e7165

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ name: Build, test, publish
33
on: [push,pull_request]
44

55
env:
6-
itk-git-tag: "v5.4.0"
6+
itk-git-tag: "v6.0a02"
77

88
jobs:
99
build-test-cxx:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
max-parallel: 3
1313
matrix:
14-
os: [ubuntu-22.04, windows-2022, macos-13]
14+
os: [ubuntu-24.04, windows-2022, macos-13]
1515
include:
16-
- os: ubuntu-22.04
16+
- os: ubuntu-24.04
1717
c-compiler: "gcc"
1818
cxx-compiler: "g++"
1919
cmake-build-type: "MinSizeRel"
@@ -31,10 +31,10 @@ jobs:
3131
with:
3232
path: Ex
3333

34-
- name: Set up Python 3.9
34+
- name: Set up Python 3.11
3535
uses: actions/setup-python@v5
3636
with:
37-
python-version: 3.9
37+
python-version: 3.11
3838

3939
- name: Install build dependencies
4040
run: |
@@ -135,17 +135,17 @@ jobs:
135135
strategy:
136136
max-parallel: 3
137137
matrix:
138-
os: [ubuntu-22.04, windows-2022, macos-12]
138+
os: [ubuntu-24.04, windows-2022, macos-15]
139139
include:
140-
- os: ubuntu-22.04
140+
- os: ubuntu-24.04
141141
c-compiler: "gcc"
142142
cxx-compiler: "g++"
143143
cmake-build-type: "MinSizeRel"
144144
- os: windows-2022
145145
c-compiler: "cl.exe"
146146
cxx-compiler: "cl.exe"
147147
cmake-build-type: "Release"
148-
- os: macos-12
148+
- os: macos-15
149149
c-compiler: "clang"
150150
cxx-compiler: "clang++"
151151
cmake-build-type: "MinSizeRel"
@@ -155,10 +155,10 @@ jobs:
155155
with:
156156
path: Ex
157157

158-
- name: Set up Python 3.9
158+
- name: Set up Python 3.11
159159
uses: actions/setup-python@v5
160160
with:
161-
python-version: 3.9
161+
python-version: 3.11
162162

163163
- name: Install build dependencies
164164
run: |
@@ -234,14 +234,14 @@ jobs:
234234
strategy:
235235
max-parallel: 3
236236
matrix:
237-
os: [ubuntu-22.04, windows-2022, macos-13]
237+
os: [ubuntu-24.04, windows-2022, macos-13]
238238

239239
steps:
240240
- uses: actions/checkout@v4
241-
- name: Set up Python 3.9
241+
- name: Set up Python 3.11
242242
uses: actions/setup-python@v5
243243
with:
244-
python-version: 3.9
244+
python-version: 3.11
245245

246246
- name: Install build dependencies
247247
run: |
@@ -263,9 +263,9 @@ jobs:
263263
strategy:
264264
max-parallel: 3
265265
matrix:
266-
os: [ubuntu-22.04]
266+
os: [ubuntu-24.04]
267267
include:
268-
- os: ubuntu-22.04
268+
- os: ubuntu-24.04
269269
c-compiler: "gcc"
270270
cxx-compiler: "g++"
271271
cmake-build-type: "Release"
@@ -276,10 +276,10 @@ jobs:
276276
path: Ex
277277
submodules: recursive
278278

279-
- name: Set up Python 3.9
279+
- name: Set up Python 3.11
280280
uses: actions/setup-python@v5
281281
with:
282-
python-version: 3.9
282+
python-version: 3.11
283283

284284
- name: Get specific version of CMake, Ninja
285285
uses: lukka/[email protected]
@@ -379,7 +379,7 @@ jobs:
379379
tar --strip-components=1 -xf /home/runner/work/bld/ITKEx-build/ITKSphinxExamples-*-html.tar.gz -C ${{ github.workspace }}/site
380380
381381
- name: Deploy website to Netlify
382-
uses: nwtgck/actions-netlify@v1.1.13
382+
uses: nwtgck/actions-netlify@v3.0.0
383383
with:
384384
publish-dir: '${{ github.workspace }}/site'
385385
production-branch: master

.github/workflows/label-pr.yml

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

1010
steps:
11-
- uses: srvaroa/labeler@v0.9
11+
- uses: srvaroa/labeler@v1.13.0
1212
env:
1313
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v5
2121
with:
22-
python-version: 3.9
22+
python-version: 3.11
2323

2424
- name: Lint Python
25-
uses: github/super-linter@v7
25+
uses: super-linter/super-linter@v7.2.1
2626
env:
2727
VALIDATE_ALL_CODEBASE: false
2828
VALIDATE_PYTHON_BLACK: true
29-
VALIDATE_YAML: true
30-
FILTER_REGEX_EXCLUDE: .github/labeler.yml
29+
# VALIDATE_YAML: true .clang-format file does not pass validation
30+
FILTER_REGEX_EXCLUDE: (.github/labeler.yml|.*\.clang-format)
3131
DEFAULT_BRANCH: master
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)