FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build(python): exit with success status if no samples found (#234) · googleapis/google-cloud-python@844e3bf · GitHub

Commit 844e3bf

Browse files
build(python): exit with success status if no samples found (#234)
Source-Link: googleapis/synthtool@53ea389 Post-Processor: gcr.io/repo-automation-bots/owlbot-python:latest@sha256:e1793a23ae0ee9aafb2e3a53b564a351f74790dbe3c2d75f8fc3b8c43e5c036c
1 parent 26ffe9f commit 844e3bf

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
docker:
22
image: gcr.io/repo-automation-bots/owlbot-python:latest
3-
digest: sha256:99d90d097e4a4710cc8658ee0b5b963f4426d0e424819787c3ac1405c9a26719
3+
digest: sha256:e1793a23ae0ee9aafb2e3a53b564a351f74790dbe3c2d75f8fc3b8c43e5c036c

‎packages/google-cloud-bigquery-storage/.kokoro/test-samples-impl.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ set -eo pipefail
2020
# Enables `**` to include files nested inside sub-folders
2121
shopt -s globstar
2222

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

‎packages/google-cloud-bigquery-storage/samples/to_dataframe/noxfile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def py(session: nox.sessions.Session) -> None:
226226

227227

228228
def _get_repo_root() -> Optional[str]:
229-
"""Returns the root folder of the project."""
229+
""" Returns the root folder of the project. """
230230
# Get root of this repository. Assume we don't have directories nested deeper than 10 items.
231231
p = Path(os.getcwd())
232232
for i in range(10):

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL