diff --git a/.github/workflows/paddle_wheel.yaml b/.github/workflows/paddle_wheel.yaml index 7b330bf8f..7d3b664e2 100644 --- a/.github/workflows/paddle_wheel.yaml +++ b/.github/workflows/paddle_wheel.yaml @@ -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 @@ -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/ - name: Run pre-build script run: | @@ -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 @@ -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/ - name: Install paddlecodec from wheel run: |