File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 19
19
required : true
20
20
type : string
21
21
description : ' The torch_npu distribution artifact name'
22
+ secrets :
23
+ pr-token :
24
+ description : ' A token used to create a pull request'
25
+ required : true
22
26
23
27
# Bash shells do not use ~/.profile or ~/.bashrc so these shells need to be explicitly
24
28
# declared as "shell: bash -el {0}" on steps that need to be properly activated.
31
35
test :
32
36
name : run benchmarks for torch_npu
33
37
runs-on : ${{ inputs.runner }}
38
+ env :
39
+ HF_ENDPOINT : https://hf-mirror.com
34
40
container :
35
41
image : ${{ inputs.image }}
36
42
volumes :
@@ -100,8 +106,6 @@ jobs:
100
106
run : |
101
107
pip install -r benchmark/requirements.txt --constraint ascend_npu/requirements.txt "numpy==1.*"
102
108
python benchmark/install.py --userbenchmark test_bench --continue_on_fail
103
- env :
104
- HF_ENDPOINT : https://hf-mirror.com
105
109
106
110
- name : Install project dependencies
107
111
run : |
@@ -150,6 +154,7 @@ jobs:
150
154
if : ${{ steps.update-readme.outputs.changed == 'true' }}
151
155
uses : peter-evans/create-pull-request@v7
152
156
with :
157
+ token : ${{ secrets.pr-token }}
153
158
add-paths : README.md
154
159
branch : ascend-npu/benchmark
155
160
title : " [Ascend NPU] Update torchbenchmark report in README.md"
Original file line number Diff line number Diff line change @@ -122,3 +122,5 @@ jobs:
122
122
image : ${{ needs.prepare.outputs.image }}
123
123
device : ${{ needs.prepare.outputs.device }}
124
124
artifact_name : ${{ needs.build.outputs.artifact_name }}
125
+ secrets :
126
+ pr-token : ${{ secrets.COSDT_BOT_TOKEN }}
You can’t perform that action at this time.
0 commit comments