Skip to content

Commit bc88acd

Browse files
authored
Update test-mlperf-inference-retinanet.yml
1 parent d3a564b commit bc88acd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/test-mlperf-inference-retinanet.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,18 @@ jobs:
5252
if: matrix.os != 'windows-latest'
5353
run: |
5454
mlcr --tags=run,mlperf,inference,generate-run-cmds,_submission,_short --submitter="MLCommons" --pull_changes=yes --pull_inference_changes=yes --hw_name=gh_${{ matrix.os }}_x86 --model=retinanet --implementation=${{ matrix.implementation }} --backend=${{ matrix.backend }} --device=cpu --scenario=Offline --test_query_count=5 --quiet -v --target_qps=1
55+
- name: Randomly Execute Step
56+
id: random-check
57+
run: |
58+
RANDOM_NUMBER=$((RANDOM % 10))
59+
echo "Random number is $RANDOM_NUMBER"
60+
if [ "$RANDOM_NUMBER" -eq 0 ]; then
61+
echo "run_step=true" >> $GITHUB_ENV
62+
else
63+
echo "run_step=false" >> $GITHUB_ENV
64+
fi
5565
- name: Retrieve secrets from Keeper
66+
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
5667
id: ksecrets
5768
uses: Keeper-Security/ksm-action@master
5869
with:
@@ -62,6 +73,7 @@ jobs:
6273
- name: Push Results
6374
env:
6475
GITHUB_TOKEN: ${{ env.PAT }}
76+
if: github.repository_owner == 'mlcommons' && env.run_step == 'true'
6577
run: |
6678
git config --global user.name "mlcommons-bot"
6779
git config --global user.email "mlcommons-bot@users.noreply.github.com"

0 commit comments

Comments
 (0)