Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/paddle_wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
# Avoid GitHub's synthetic PR merge ref; test the PR head commit directly.
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Setup conda environment
uses: conda-incubator/setup-miniconda@v3
Expand All @@ -97,7 +100,7 @@ jobs:

- name: Install PaddlePaddle nightly
run: |
pip install --pre paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
pip install --pre paddlepaddle==3.4.0.dev20251223 -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/

Comment on lines 101 to 104
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PaddlePaddle version string is hard-coded here and also repeated later in this workflow. To avoid having to update multiple places (and reduce the risk of mismatched versions between build and test jobs), define a single env var (e.g., PADDLE_VERSION) at the workflow/job level and reference it in both pip install commands.

Copilot uses AI. Check for mistakes.
- name: Run pre-build script
run: |
Expand Down Expand Up @@ -178,6 +181,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
# Avoid GitHub's synthetic PR merge ref; test the PR head commit directly.
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Download wheel artifact
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -206,7 +212,7 @@ jobs:

- name: Install PaddlePaddle nightly in conda env
run: |
pip install --pre paddlepaddle -i https://www.paddlepaddle.org.cn/packages/nightly/cpu/
pip install --pre paddlepaddle==3.3.1 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/

Comment on lines 213 to 216
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This duplicates the exact PaddlePaddle version pinned earlier in the workflow. Consider referencing a single workflow/job env var for the version so build and test jobs cannot drift and future bumps are one-line changes.

Copilot uses AI. Check for mistakes.
- name: Install paddlecodec from wheel
run: |
Expand Down
Loading