Skip to content

Commit 85b5c0d

Browse files
authored
[CI] fix api-benchmark manually (#74779)
* fix * fix
1 parent bdd879e commit 85b5c0d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/_Api-Benchmark.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,16 @@ jobs:
133133
cd ./PaddleTest/framework/e2e/api_benchmark_new
134134
cp /paddle/PTSTools/Uploader/apibm_config.yml .
135135
source ${{ github.workspace }}/../../../proxy
136-
${python} -m pip install $wheel_link
137136
if [[ "${{ inputs.baseline }}" == "true" ]];then
138137
if [[ "${{ inputs.MANUALLY_PR_ID }}" == "" ]]; then
139-
${python} runner_ci_action.py --yaml ../yaml/api_benchmark_fp32.yml --baseline_whl_link https://paddle-github-action.bj.bcebos.com/PR/build/${{ github.event.pull_request.number }}/${{ github.event.pull_request.head.sha }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
138+
export pr_wheel_link=https://paddle-github-action.bj.bcebos.com/PR/build/${{ github.event.pull_request.number }}/${{ github.event.pull_request.head.sha }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
140139
else
141-
${python} runner_ci_action.py --yaml ../yaml/api_benchmark_fp32.yml --baseline_whl_link https://paddle-github-action.bj.bcebos.com/PR/build/${{ inputs.MANUALLY_PR_ID }}/${{ inputs.MANUALLY_COMMIT_ID }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
140+
export pr_wheel_link=https://paddle-github-action.bj.bcebos.com/PR/build/${{ inputs.MANUALLY_PR_ID }}/${{ inputs.MANUALLY_COMMIT_ID }}/paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
142141
fi
142+
${python} runner_ci_action.py --yaml ../yaml/api_benchmark_fp32.yml --baseline_whl_link $pr_wheel_link
143143
exit 0
144144
fi
145+
${python} -m pip install $wheel_link
145146
if [ ${core_index} -eq -1 ];then
146147
${python} runner_ci_action.py --yaml ../yaml/api_benchmark_fp32.yml --core_index 2
147148
else

0 commit comments

Comments
 (0)