Skip to content

Commit

Permalink
build(python): exit with success status if no samples found (#1153)
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Jul 14, 2021
1 parent 959d4f8 commit 53ea389
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ set -eo pipefail
# Enables `**` to include files nested inside sub-folders
shopt -s globstar

# Exit early if samples directory doesn't exist
if [ ! -d "./samples" ]; then
echo "No tests run. `./samples` not found"
# Exit early if samples don't exist
if ! find samples -name 'requirements.txt' | grep -q .; then
echo "No tests run. './samples/**/requirements.txt' not found"
exit 0
fi

Expand Down

0 comments on commit 53ea389

Please sign in to comment.