Skip to content

Commit d6d05ae

Browse files
committed
modify gh.token for tests
1 parent 9b856bd commit d6d05ae

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.github/workflows/_linux_e2e.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ permissions: read-all
4646
defaults:
4747
run:
4848
shell: bash -xe {0}
49-
env:
50-
GH_TOKEN: ${{ github.token }}
51-
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
52-
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
5349

5450
jobs:
5551
runner:
@@ -87,6 +83,10 @@ jobs:
8783
cpus_per_xpu: ${{ needs.runner.outputs.cpus_per_xpu }}
8884
MODEL_ONLY_NAME: ${{ inputs.model }}
8985
AGENT_TOOLSDIRECTORY: /tmp/xpu-tool
86+
env:
87+
GH_TOKEN: ${{ github.token }}
88+
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
89+
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
9090
steps:
9191
- name: Checkout torch-xpu-ops
9292
uses: actions/checkout@v4

.github/workflows/_linux_op_benchmark.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ permissions: read-all
2222
defaults:
2323
run:
2424
shell: bash -xe {0}
25-
env:
26-
GH_TOKEN: ${{ github.token }}
27-
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
28-
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
29-
reference_issue: 1689
3025

3126
jobs:
3227
runner:
@@ -59,6 +54,9 @@ jobs:
5954
-u ${{ needs.runner.outputs.user_id }}:${{ needs.runner.outputs.render_id }}
6055
env:
6156
AGENT_TOOLSDIRECTORY: /opt/xpu-tool
57+
env:
58+
GH_TOKEN: ${{ github.token }}
59+
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
6260
steps:
6361
- name: Checkout torch-xpu-ops
6462
uses: actions/checkout@v4
@@ -93,6 +91,9 @@ jobs:
9391
runs-on: ubuntu-24.04
9492
permissions:
9593
issues: write
94+
env:
95+
GH_TOKEN: ${{ github.token }}
96+
reference_issue: 1689
9697
steps:
9798
- name: Install gh-cli
9899
run: |

.github/workflows/_linux_ut.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ permissions: read-all
2929
defaults:
3030
run:
3131
shell: bash -xe {0}
32-
env:
33-
GH_TOKEN: ${{ github.token }}
34-
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
35-
HUGGING_FACE_HUB_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
36-
UT_SKIP_ISSUE: 1624
3732

3833
jobs:
3934
runner:
@@ -69,6 +64,9 @@ jobs:
6964
env:
7065
AGENT_TOOLSDIRECTORY: /tmp/xpu-tool
7166
PYTEST_ADDOPTS: -v --timeout 600 --timeout_method=thread --dist worksteal ${{ needs.runner.outputs.pytest_extra_args }}
67+
env:
68+
GH_TOKEN: ${{ github.token }}
69+
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
7270
steps:
7371
- name: Checkout torch-xpu-ops
7472
uses: actions/checkout@v4
@@ -103,6 +101,8 @@ jobs:
103101
if: ${{ contains(inputs.ut, 'distributed') }}
104102
runs-on: ${{ needs.runner.outputs.runner_id }}
105103
env:
104+
GH_TOKEN: ${{ github.token }}
105+
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
106106
AGENT_TOOLSDIRECTORY: /tmp/xpu-tool
107107
PYTEST_ADDOPTS: -v --timeout 3600 --timeout_method=thread -n 1
108108
steps:
@@ -138,6 +138,9 @@ jobs:
138138
if: ${{ ! cancelled() && ! (endsWith(needs.test-in-container.result, 'ed') && endsWith(needs.test-in-baremetal.result, 'ed')) }}
139139
runs-on: ubuntu-24.04
140140
timeout-minutes: 30
141+
env:
142+
GH_TOKEN: ${{ github.token }}
143+
UT_SKIP_ISSUE: 1624
141144
steps:
142145
- name: Checkout torch-xpu-ops
143146
uses: actions/checkout@v4

0 commit comments

Comments
 (0)