|
34 | 34 | mlcr --quiet --tags=get,sys-utils-cm
|
35 | 35 | - name: Test MLC Tutorial TVM
|
36 | 36 | run: |
|
37 |
| - 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 }} |
| 37 | + mlcr --tags=run-mlperf,inference,_submission,_short --adr.python.name=mlperf --adr.python.version_min=3.8 --submitter=MLCommons --implementation=python --hw_name=gh_ubuntu-latest --model=resnet50 --backend=tvm-onnx --device=cpu --scenario=Offline --mode=accuracy --test_query_count=5 --clean --quiet ${{ matrix.extra-options }} |
| 38 | + - name: Randomly Execute Step |
| 39 | + id: random-check |
| 40 | + run: | |
| 41 | + RANDOM_NUMBER=$((RANDOM % 10)) |
| 42 | + echo "Random number is $RANDOM_NUMBER" |
| 43 | + if [ "$RANDOM_NUMBER" -eq 0 ]; then |
| 44 | + echo "run_step=true" >> $GITHUB_ENV |
| 45 | + else |
| 46 | + echo "run_step=false" >> $GITHUB_ENV |
| 47 | + fi |
38 | 48 | - name: Retrieve secrets from Keeper
|
| 49 | + if: github.repository_owner == 'mlcommons' && env.run_step == 'true' |
39 | 50 | id: ksecrets
|
40 | 51 | uses: Keeper-Security/ksm-action@master
|
41 | 52 | with:
|
|
45 | 56 | - name: Push Results
|
46 | 57 | env:
|
47 | 58 | GITHUB_TOKEN: ${{ env.PAT }}
|
| 59 | + USER: mlcommons-bot |
| 60 | + EMAIL: mlcommons-bot@users.noreply.github.com |
| 61 | + if: github.repository_owner == 'mlcommons' && env.run_step == 'true' |
48 | 62 | run: |
|
49 |
| - git config --global user.name "mlcommons-bot" |
50 |
| - git config --global user.email "mlcommons-bot@users.noreply.github.com" |
| 63 | + git config --global user.name "${{ env.USER }}" |
| 64 | + git config --global user.email "${{ env.EMAIL }}" |
51 | 65 | git config --global credential.https://github.com.helper ""
|
52 | 66 | git config --global credential.https://github.com.helper "!gh auth git-credential"
|
53 | 67 | git config --global credential.https://gist.github.com.helper ""
|
|
0 commit comments