Skip to content

Commit 8af01c5

Browse files
committed
Revert "modify gh.token for tests"
This reverts commit 97da161.
1 parent d6d05ae commit 8af01c5

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

.github/workflows/_linux_e2e.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ 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 }}
4953

5054
jobs:
5155
runner:
@@ -83,10 +87,6 @@ jobs:
8387
cpus_per_xpu: ${{ needs.runner.outputs.cpus_per_xpu }}
8488
MODEL_ONLY_NAME: ${{ inputs.model }}
8589
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: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ 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
2530

2631
jobs:
2732
runner:
@@ -54,9 +59,6 @@ jobs:
5459
-u ${{ needs.runner.outputs.user_id }}:${{ needs.runner.outputs.render_id }}
5560
env:
5661
AGENT_TOOLSDIRECTORY: /opt/xpu-tool
57-
env:
58-
GH_TOKEN: ${{ github.token }}
59-
HF_TOKEN: ${{ secrets.HUGGING_FACE_HUB_TOKEN }}
6062
steps:
6163
- name: Checkout torch-xpu-ops
6264
uses: actions/checkout@v4
@@ -91,9 +93,6 @@ jobs:
9193
runs-on: ubuntu-24.04
9294
permissions:
9395
issues: write
94-
env:
95-
GH_TOKEN: ${{ github.token }}
96-
reference_issue: 1689
9796
steps:
9897
- name: Install gh-cli
9998
run: |

.github/workflows/_linux_ut.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ 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
3237

3338
jobs:
3439
runner:
@@ -64,9 +69,6 @@ jobs:
6469
env:
6570
AGENT_TOOLSDIRECTORY: /tmp/xpu-tool
6671
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 }}
7072
steps:
7173
- name: Checkout torch-xpu-ops
7274
uses: actions/checkout@v4
@@ -101,8 +103,6 @@ jobs:
101103
if: ${{ contains(inputs.ut, 'distributed') }}
102104
runs-on: ${{ needs.runner.outputs.runner_id }}
103105
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,9 +138,6 @@ 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
144141
steps:
145142
- name: Checkout torch-xpu-ops
146143
uses: actions/checkout@v4

0 commit comments

Comments
 (0)