Skip to content

Commit

Permalink
Update upload-model-to-dockerhub.yml
Browse files Browse the repository at this point in the history
Fix the bash script and environment setting in the workflow.
  • Loading branch information
DhanshreeA authored Apr 8, 2024
1 parent 69ddfc0 commit f9bf1ca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/upload-model-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,20 @@ jobs:
- name: Test Built Image
id: testBuiltImage
run: |
export PULL_IMAGE=n
ersilia -v fetch ${{ github.event.repository.name }} --from_dockerhub
ersilia -v serve ${{ github.event.repository.name }}
ersilia -v run -i "CCCC" -o "output.json"
expected=$(jq '.[0].output.outcome[]' output.json | wc -l)
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 [ $expected -ne $result ]
then
echo "Error in model output, aborting build and push"
exit 1
fi
env:
PULL_IMAGE: n

- name: Build and push
id: buildMultiple
Expand Down

0 comments on commit f9bf1ca

Please sign in to comment.