Skip to content

Commit 06ae02a

Browse files
committed
Upgrade GitHub Actions versions
Signed-off-by: Keith Battocchi <kebatt@microsoft.com>
1 parent 81693ff commit 06ae02a

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ubuntu-latest
4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v4
42+
uses: actions/checkout@v6
4343
with:
4444
ref: ${{ env.ref }}
4545
fetch-depth: 2
@@ -96,11 +96,11 @@ jobs:
9696
runs-on: ubuntu-latest
9797
steps:
9898
- name: Checkout repository
99-
uses: actions/checkout@v4
99+
uses: actions/checkout@v6
100100
with:
101101
ref: ${{ env.ref }}
102102
- name: Setup Python
103-
uses: actions/setup-python@v5
103+
uses: actions/setup-python@v6
104104
with:
105105
python-version: '3.9'
106106
- name: Ensure latest pip and setuptools
@@ -132,11 +132,11 @@ jobs:
132132
id_string: ${{ matrix.kind }}-${{ matrix.version }}
133133
steps:
134134
- name: Checkout repository
135-
uses: actions/checkout@v4
135+
uses: actions/checkout@v6
136136
with:
137137
ref: ${{ env.ref }}
138138
- name: Setup Python
139-
uses: actions/setup-python@v5
139+
uses: actions/setup-python@v6
140140
with:
141141
python-version: ${{ matrix.version }}
142142
- name: Install uv
@@ -155,7 +155,7 @@ jobs:
155155
- name: Save installed packages
156156
run: pip freeze --exclude-editable > notebooks-${{ env.id_string }}-requirements.txt
157157
- name: Upload installed packages
158-
uses: actions/upload-artifact@v4
158+
uses: actions/upload-artifact@v6
159159
with:
160160
name: requirements-${{ env.id_string }}
161161
path: notebooks-${{ env.id_string }}-requirements.txt
@@ -173,7 +173,7 @@ jobs:
173173
# Run whether or not the tests passed, but only if they ran at all
174174
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
175175
- name: Upload coverage report
176-
uses: actions/upload-artifact@v4
176+
uses: actions/upload-artifact@v6
177177
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
178178
with:
179179
name: coverage-${{ env.id_string }}
@@ -185,13 +185,13 @@ jobs:
185185
# Run whether or not the tests passed, but only if they ran at all
186186
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
187187
- name: Upload test XML files
188-
uses: actions/upload-artifact@v4
188+
uses: actions/upload-artifact@v6
189189
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
190190
with:
191191
name: tests-${{ env.id_string }}
192192
path: ${{ env.id_string }}-test-results.xml
193193
- name: Upload notebook outputs
194-
uses: actions/upload-artifact@v4
194+
uses: actions/upload-artifact@v6
195195
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
196196
with:
197197
name: notebooks-${{ env.id_string }}
@@ -242,11 +242,11 @@ jobs:
242242
id_string: ${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.kind }}
243243
steps:
244244
- name: Checkout repository
245-
uses: actions/checkout@v4
245+
uses: actions/checkout@v6
246246
with:
247247
ref: ${{ env.ref }}
248248
- name: Setup Python
249-
uses: actions/setup-python@v5
249+
uses: actions/setup-python@v6
250250
with:
251251
python-version: ${{ matrix.python-version }}
252252
- name: Install libomp
@@ -265,7 +265,7 @@ jobs:
265265
- name: Save installed packages
266266
run: pip freeze --exclude-editable > tests-${{ env.id_string }}-requirements.txt
267267
- name: Upload installed packages
268-
uses: actions/upload-artifact@v4
268+
uses: actions/upload-artifact@v6
269269
with:
270270
name: requirements-${{ env.id_string }}
271271
path: tests-${{ env.id_string }}-requirements.txt
@@ -282,7 +282,7 @@ jobs:
282282
# Run whether or not the tests passed, but only if they ran at all
283283
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
284284
- name: Upload coverage report
285-
uses: actions/upload-artifact@v4
285+
uses: actions/upload-artifact@v6
286286
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
287287
with:
288288
name: coverage-${{ env.id_string }}
@@ -294,7 +294,7 @@ jobs:
294294
# Run whether or not the tests passed, but only if they ran at all
295295
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
296296
- name: Upload test XML files
297-
uses: actions/upload-artifact@v4
297+
uses: actions/upload-artifact@v6
298298
if: success() || failure() && contains(fromJSON('["success", "failure"]'), steps.run_tests.outcome)
299299
with:
300300
name: tests-${{ env.id_string }}
@@ -330,11 +330,11 @@ jobs:
330330
runs-on: ${{ matrix.os }}
331331
steps:
332332
- name: Checkout repository
333-
uses: actions/checkout@v4
333+
uses: actions/checkout@v6
334334
with:
335335
ref: ${{ env.ref }}
336336
- name: Setup Python
337-
uses: actions/setup-python@v5
337+
uses: actions/setup-python@v6
338338
with:
339339
python-version: ${{ matrix.python-version }}
340340
- name: Install uv
@@ -349,7 +349,7 @@ jobs:
349349
- name: Save installed packages
350350
run: pip freeze --exclude-editable > lkg-${{ matrix.kind }}-${{ matrix.os }}-${{ matrix.python-version }}.txt
351351
- name: Upload installed packages
352-
uses: actions/upload-artifact@v4
352+
uses: actions/upload-artifact@v6
353353
with:
354354
name: lkg-${{ matrix.kind }}-${{ matrix.os }}-${{ matrix.python-version }}
355355
path: lkg-${{ matrix.kind }}-${{ matrix.os }}-${{ matrix.python-version }}.txt
@@ -361,17 +361,17 @@ jobs:
361361
runs-on: ubuntu-latest
362362
steps:
363363
- name: Checkout repository
364-
uses: actions/checkout@v4
364+
uses: actions/checkout@v6
365365
with:
366366
ref: ${{ env.ref }}
367367
- name: Get coverage reports
368-
uses: actions/download-artifact@v4
368+
uses: actions/download-artifact@v8
369369
with:
370370
pattern: coverage-*
371371
path: coverage
372372
merge-multiple: true
373373
- name: Setup Python
374-
uses: actions/setup-python@v5
374+
uses: actions/setup-python@v6
375375
with:
376376
python-version: '3.12'
377377
- name: Install coverage
@@ -383,7 +383,7 @@ jobs:
383383
- name: Generate coverage html --fail-under=86
384384
run: coverage html
385385
- name: Upload coverage report
386-
uses: actions/upload-artifact@v4
386+
uses: actions/upload-artifact@v6
387387
with:
388388
name: coverage-report
389389
path: htmlcov
@@ -398,7 +398,7 @@ jobs:
398398
runs-on: ubuntu-latest
399399
steps:
400400
- name: "Merge artifacts"
401-
uses: actions/upload-artifact/merge@v4
401+
uses: actions/upload-artifact/merge@v6
402402
with:
403403
name: ${{ matrix.artifact }}
404404
pattern: "${{ matrix.artifact }}-*"
@@ -425,20 +425,20 @@ jobs:
425425
runs-on: ubuntu-latest
426426
steps:
427427
- name: Checkout repository
428-
uses: actions/checkout@v4
428+
uses: actions/checkout@v6
429429
with:
430430
ref: ${{ env.ref }}
431431
- name: Setup Python
432-
uses: actions/setup-python@v5
432+
uses: actions/setup-python@v6
433433
- name: Download files
434-
uses: actions/download-artifact@v4
434+
uses: actions/download-artifact@v8
435435
with:
436436
name: lkg-${{ matrix.kind }}
437437
path: requirements
438438
- name: "Generate last known good versions"
439439
run: python .github/workflows/generate_lkg.py requirements "lkg-${{ matrix.pattern }}-(?P<os>[a-z]+)-(latest|[0-9.]+)-(?P<pyversion>[0-9.]+).txt" ${{ matrix.output-name }}.txt
440440
- name: "Upload last known good versions"
441-
uses: actions/upload-artifact@v4
441+
uses: actions/upload-artifact@v6
442442
with:
443443
name: ${{ matrix.output-name }}
444444
path: ${{ matrix.output-name }}.txt
@@ -450,7 +450,7 @@ jobs:
450450
runs-on: ubuntu-latest
451451
steps:
452452
- name: "Merge last known good versions"
453-
uses: actions/upload-artifact/merge@v4
453+
uses: actions/upload-artifact/merge@v6
454454
with:
455455
# can't use just "lkg" for the name since that artifact already exists and merge won't overwrite it even when delete-merged is true
456456
name: lkg-files

.github/workflows/publish-documentation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ jobs:
6565

6666
steps:
6767
- name: Checkout repository
68-
uses: actions/checkout@v4
68+
uses: actions/checkout@v6
6969
with:
7070
ref: ${{ inputs.ref }}
7171
- name: Setup Python
72-
uses: actions/setup-python@v5
72+
uses: actions/setup-python@v6
7373
with:
7474
python-version: 3.12
7575
- name: Ensure latest pip and setuptools
@@ -81,7 +81,7 @@ jobs:
8181
- name: Build documentation
8282
run: pip install "sphinx~=7.0" "sphinx_rtd_theme~=2.0.0" scipy-doctest && sphinx-build ./doc/ ./build/sphinx/html/ -W
8383
- name: Upload docs as artifact
84-
uses: actions/upload-artifact@v4
84+
uses: actions/upload-artifact@v6
8585
with:
8686
name: docs
8787
path: build/sphinx/html/
@@ -99,7 +99,7 @@ jobs:
9999
runs-on: ubuntu-latest
100100
steps:
101101
- name: Download docs artifact
102-
uses: actions/download-artifact@v4
102+
uses: actions/download-artifact@v8
103103
with:
104104
name: docs
105105
path: html

.github/workflows/publish-package.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ jobs:
5959
runs-on: ${{ matrix.os }}
6060
steps:
6161
- name: Checkout repository
62-
uses: actions/checkout@v4
62+
uses: actions/checkout@v6
6363
with:
6464
ref: ${{ inputs.ref }}
6565
- name: Setup Python
66-
uses: actions/setup-python@v5
66+
uses: actions/setup-python@v6
6767
with:
6868
python-version: 3.11
6969
- name: Ensure latest pip and setuptools
@@ -74,7 +74,7 @@ jobs:
7474
CIBW_BUILD: ${{ inputs.use_lkg && 'cp3{9,10,11,12,13,14}{,t}-*' || 'cp3*' }}
7575
CIBW_SKIP: "*musl* *win32 *i686"
7676
- name: Upload wheels as artifact
77-
uses: actions/upload-artifact@v4
77+
uses: actions/upload-artifact@v6
7878
with:
7979
name: dist-${{ matrix.os }}
8080
path: dist/
@@ -83,11 +83,11 @@ jobs:
8383
runs-on: ubuntu-latest
8484
steps:
8585
- name: Checkout repository
86-
uses: actions/checkout@v4
86+
uses: actions/checkout@v6
8787
with:
8888
ref: ${{ inputs.ref }}
8989
- name: Setup Python
90-
uses: actions/setup-python@v5
90+
uses: actions/setup-python@v6
9191
with:
9292
python-version: 3.12
9393
- name: Ensure latest pip and setuptools
@@ -97,7 +97,7 @@ jobs:
9797
- name: Build sdist
9898
run: python setup.py sdist
9999
- name: Upload sdist as artifact
100-
uses: actions/upload-artifact@v4
100+
uses: actions/upload-artifact@v6
101101
with:
102102
name: dist-sdist
103103
path: dist/
@@ -108,7 +108,7 @@ jobs:
108108
runs-on: ubuntu-latest
109109
steps:
110110
- name: "Merge artifacts"
111-
uses: actions/upload-artifact/merge@v4
111+
uses: actions/upload-artifact/merge@v6
112112
with:
113113
name: dist
114114
pattern: dist-*
@@ -124,7 +124,7 @@ jobs:
124124
runs-on: ubuntu-latest
125125
steps:
126126
- name: Download wheels and sdist
127-
uses: actions/download-artifact@v4
127+
uses: actions/download-artifact@v8
128128
with:
129129
name: dist
130130
path: dist/

0 commit comments

Comments
 (0)