Skip to content

Commit e91a7b2

Browse files
authored
Update test-mlc-tutorial-tvm.yml
1 parent 35f9155 commit e91a7b2

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/test-mlc-tutorial-tvm.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: MLC tutorial tvm
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches: [ "main", "dev" ]
66
paths:
77
- '.github/workflows/test-mlc-tutorial-tvm.yml'
@@ -36,3 +36,21 @@ jobs:
3636
- name: Test MLC Tutorial TVM
3737
run: |
3838
mlcr --tags=run-mlperf,inference,_submission,_short --adr.python.name=mlperf --adr.python.version_min=3.8 --submitter=Community --implementation=python --hw_name=default --model=resnet50 --backend=tvm-onnx --device=cpu --scenario=Offline --mode=accuracy --test_query_count=5 --clean --quiet ${{ matrix.extra-options }}
39+
- name: Retrieve secrets from Keeper
40+
id: ksecrets
41+
uses: Keeper-Security/ksm-action@master
42+
with:
43+
keeper-secret-config: ${{ secrets.KSM_CONFIG }}
44+
secrets: |-
45+
ubwkjh-Ii8UJDpG2EoU6GQ/field/Access Token > env:PAT
46+
- name: Push Results
47+
env:
48+
GITHUB_TOKEN: ${{ env.PAT }}
49+
run: |
50+
git config --global user.name "mlcommons-bot"
51+
git config --global user.email "mlcommons-bot@users.noreply.github.com"
52+
git config --global credential.https://github.com.helper ""
53+
git config --global credential.https://github.com.helper "!gh auth git-credential"
54+
git config --global credential.https://gist.github.com.helper ""
55+
git config --global credential.https://gist.github.com.helper "!gh auth git-credential"
56+
mlcr --tags=push,github,mlperf,inference,submission --repo_url=https://github.com/mlcommons/mlperf_inference_test_submissions_v5.0 --repo_branch=auto-update --commit_message="Results from R50 GH action on ${{ matrix.os }}" --quiet

0 commit comments

Comments
 (0)