Skip to content

Commit

Permalink
fix: Add code exit
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro-v committed Jun 12, 2024
1 parent 9ac1008 commit 1f0fcc4
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/cortex-js-openai-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,17 @@ jobs:
pytest --continue-on-collection-errors --endpoint "$ENDPOINTS" --reportportal --html=report.html -v
kill $cortex_pid
# Check the exit code of pytest
exit_code=$?
# If the exit code is 1 (or any non-zero code), change it to 0
if [ $exit_code -ne 0 ]; then
kill $cortex_pid
exit 0
else
kill $cortex_pid
exit $exit_code
fi
env:
ENDPOINTS: ${{ github.event.inputs.endpoints }}

Expand Down

0 comments on commit 1f0fcc4

Please sign in to comment.