Skip to content

Commit

Permalink
Rework logic for testing a docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
DhanshreeA committed Apr 9, 2024
1 parent 25a4f2e commit bfc9d06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/upload-model-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ jobs:
result=$(jq '.[0].output.outcome[] | select(. != null)' output.json | wc -l)
echo "Expected correct outcomes $expected"
echo "Returned correct outcomes $result"
if [ $expected -ne $result ]
if [ $result -le $expected ]
then
: # Do nothing as this is what we want
else
echo "Error in model output, aborting build and push"
exit 1
fi
Expand Down

0 comments on commit bfc9d06

Please sign in to comment.