Skip to content

Commit b0a1711

Browse files
authored
Update test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml
1 parent bc88acd commit b0a1711

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,18 @@ jobs:
4747
if: matrix.os != 'windows-latest'
4848
run: |
4949
mlcr --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --hw_name=gh_${{ matrix.os }}_x86 --model=bert-99 --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --precision=${{ matrix.precision }} --target_qps=1 -v --quiet
50+
- name: Randomly Execute Step
51+
id: random-check
52+
run: |
53+
RANDOM_NUMBER=$((RANDOM % 10))
54+
echo "Random number is $RANDOM_NUMBER"
55+
if [ "$RANDOM_NUMBER" -eq 0 ]; then
56+
echo "run_step=true" >> $GITHUB_ENV
57+
else
58+
echo "run_step=false" >> $GITHUB_ENV
59+
fi
5060
- name: Retrieve secrets from Keeper
61+
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
5162
id: ksecrets
5263
uses: Keeper-Security/ksm-action@master
5364
with:
@@ -57,6 +68,7 @@ jobs:
5768
- name: Push Results
5869
env:
5970
GITHUB_TOKEN: ${{ env.PAT }}
71+
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
6072
run: |
6173
git config --global user.name "mlcommons-bot"
6274
git config --global user.email "mlcommons-bot@users.noreply.github.com"

0 commit comments

Comments
 (0)