File tree Expand file tree Collapse file tree 2 files changed +4
-36
lines changed
Expand file tree Collapse file tree 2 files changed +4
-36
lines changed Original file line number Diff line number Diff line change 1818 - others
1919 schedule :
2020 - cron : ' 0 21 * * *'
21- - cron : ' 0 22 * * 3'
2221
2322permissions : read-all
2423
7776 MANUALLY_PR_ID : ${{ inputs.PR_ID }}
7877 MANUALLY_COMMIT_ID : ${{ inputs.COMMIT_ID }}
7978 run-labels : ${{ matrix.run-labels }}
80-
81- test1 :
82- runs-on : ubuntu-latest
83- if : github.event.schedule == '0 0 * * *'
84- steps :
85- - name : Test
86- run : |
87- echo "test1"
88-
89- test2 :
90- runs-on : ubuntu-latest
91- if : github.event.schedule == '0 21 * * *'
92- steps :
93- - name : Test
94- run : |
95- echo "test2"
96-
97- test3 :
98- runs-on : ubuntu-latest
99- if : github.event.schedule == '0 22 * * 3'
100- steps :
101- - name : Test
102- run : |
103- echo "test3"
104-
105- test4 :
106- runs-on : ubuntu-latest
107- if : github.event.schedule == '0 21 * * 1'
108- steps :
109- - name : Test
110- run : |
111- echo "test4"
Original file line number Diff line number Diff line change 7676 - name : Check docker image and run container
7777 env :
7878 python : " python3.10"
79- GIT_PR_ID : ${{ github.event.pull_request.number }}
79+ GIT_PR_ID : ${{ github.event.pull_request.number || '0' }}
8080 GITHUB_API_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8181 RUN_ID : ${{ github.run_id }}
8282 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
@@ -134,13 +134,14 @@ jobs:
134134 cp /paddle/PTSTools/Uploader/apibm_config.yml .
135135 source ${{ github.workspace }}/../../../proxy
136136 if [[ "${{ inputs.baseline }}" == "true" ]];then
137+ set -e
137138 if [[ "${{ inputs.MANUALLY_PR_ID }}" == "" ]]; then
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
139+ export pr_wheel_link=https://paddle-github-action.bj.bcebos.com/PR/build/$PR_ID/$COMMIT_ID /paddlepaddle_gpu-0.0.0-cp310-cp310-linux_x86_64.whl
139140 else
140141 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
141142 fi
142143 ${python} -m pip install $pr_wheel_link
143- ${python} runner_ci_action .py --yaml ../yaml/api_benchmark_fp32 .yml --baseline_whl_link $pr_wheel_link
144+ ${python} runner_ci_multipro_action .py --yaml ../yaml/sort_api_benchmark_fp32 .yml --core_index ${core_index} --baseline_whl_link $pr_wheel_link
144145 exit 0
145146 fi
146147 ${python} -m pip install $wheel_link
You can’t perform that action at this time.
0 commit comments