Skip to content

Commit 6b666af

Browse files
authored
[CI] Upgrade GitHub Actions for Node 24 compatibility (#7895)
1 parent 4f0a68b commit 6b666af

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/codestyle-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
rm -rf * .[^.]*
3030
3131
- name: Checkout base repo
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@v6
3333
with:
3434
ref: ${{ github.event.pull_request.base.ref }}
3535
fetch-depth: 200
@@ -40,7 +40,7 @@ jobs:
4040
git checkout -b test FETCH_HEAD
4141
4242
- name: Install uv
43-
uses: astral-sh/setup-uv@v6
43+
uses: astral-sh/setup-uv@v7
4444
with:
4545
python-version: "3.13"
4646
enable-cache: true

.github/workflows/link-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
linkChecker:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v6
1111

1212
- name: Link Checker
1313
id: lychee
@@ -22,7 +22,7 @@ jobs:
2222

2323
- name: Create Issue From File
2424
if: steps.lychee.outputs.exit_code != 0
25-
uses: peter-evans/create-issue-from-file@v5
25+
uses: peter-evans/create-issue-from-file@v6
2626
with:
2727
title: Link Checker Report
2828
content-filepath: ./lychee/results.md

.github/workflows/preview-url-comment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ jobs:
1414
github.event.workflow_run.event == 'pull_request' &&
1515
github.event.workflow_run.conclusion == 'success'
1616
permissions:
17+
actions: read
1718
pull-requests: write
1819

1920
steps:
2021
- name: Download artifacts
21-
uses: actions/download-artifact@v4
22+
uses: actions/download-artifact@v8
2223
with:
2324
github-token: ${{ secrets.GITHUB_TOKEN }}
2425
run-id: ${{ github.event.workflow_run.id }}
@@ -50,7 +51,7 @@ jobs:
5051
body-includes: '本次 PR 文档预览链接'
5152

5253
- name: Create or update comment
53-
uses: peter-evans/create-or-update-comment@v4
54+
uses: peter-evans/create-or-update-comment@v5
5455
with:
5556
comment-id: ${{ steps.fc.outputs.comment-id }}
5657
issue-number: ${{ steps.pr-metadata.outputs.pr_number }}

.github/workflows/preview-url-generate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
steps:
1818
- name: Checkout PR branch
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
2222

@@ -31,7 +31,7 @@ jobs:
3131
./ci_scripts/report_preview_url.sh ${{ github.event.pull_request.number }} > preview_urls.txt
3232
3333
- name: Upload preview URLs as artifact
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@v7
3535
with:
3636
name: preview-urls-${{ github.event.pull_request.number }}
3737
path: preview_urls.txt
@@ -43,7 +43,7 @@ jobs:
4343
echo "${{ github.event.pull_request.head.sha }}" > pr_sha.txt
4444
4545
- name: Upload PR metadata
46-
uses: actions/upload-artifact@v4
46+
uses: actions/upload-artifact@v7
4747
with:
4848
name: pr-metadata-${{ github.event.pull_request.number }}
4949
path: |

docs/api/paddle/incubate/optimizer/functional/minimize_lbfgs_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ LBFGS 具体原理参考书籍 Jorge Nocedal, Stephen J. Wright, Numerical Optim
1616
:::::::::
1717
- minimize_bfgs 优化器当前实现为函数形式,与 Paddle 现有 SGD、Adam 优化器等使用略微有些区别。
1818
SGD/Adam 等通过调用 backward()计算梯度,并使用 step()更新网络参数,而 minimize_lbfgs 传入
19-
loss 函数,并返回优化后参数,返回参数需要通过 :ref:`cn_api_paddle_assign` 以 inpalce 方式进行更新。具体参考代码示例 1.
19+
loss 函数,并返回优化后参数,返回参数需要通过 :ref:`cn_api_paddle_assign` 以 inplace 方式进行更新。具体参考代码示例 1.
2020
- 由于当前实现上一些限制,当前 minimize_bfgs 要求函数输入为一维 Tensor。当输入参数维度超过一维,
2121
可以先将参数展平,使用 minimize_bfgs 计算后,再 reshape 到原有形状,更新参数。具体参考代码示例 2.
2222

0 commit comments

Comments
 (0)