| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 26ffe9f commit 844e3bf
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,3 @@ | |||
| 1 | 1 | docker: | |
| 2 | 2 | image: gcr.io/repo-automation-bots/owlbot-python:latest | |
| 3 | - digest: sha256:99d90d097e4a4710cc8658ee0b5b963f4426d0e424819787c3ac1405c9a26719 | ||
| 3 | + digest: sha256:e1793a23ae0ee9aafb2e3a53b564a351f74790dbe3c2d75f8fc3b8c43e5c036c | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,9 +20,9 @@ set -eo pipefail | |||
| 20 | 20 | # Enables `**` to include files nested inside sub-folders | |
| 21 | 21 | shopt -s globstar | |
| 22 | 22 | ||
| 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" | ||
| 26 | 26 | exit 0 | |
| 27 | 27 | fi | |
| 28 | 28 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -226,7 +226,7 @@ def py(session: nox.sessions.Session) -> None: | |||
| 226 | 226 | ||
| 227 | 227 | ||
| 228 | 228 | def _get_repo_root() -> Optional[str]: | |
| 229 | - """Returns the root folder of the project.""" | ||
| 229 | + """ Returns the root folder of the project. """ | ||
| 230 | 230 | # Get root of this repository. Assume we don't have directories nested deeper than 10 items. | |
| 231 | 231 | p = Path(os.getcwd()) | |
| 232 | 232 | for i in range(10): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments