Skip to content

Fix python-tests workflow: split get_sample_dirs into its own job#1420

Open
salmanmkc wants to merge 1 commit intogoogle:mainfrom
salmanmkc:fix-python-tests-workflow
Open

Fix python-tests workflow: split get_sample_dirs into its own job#1420
salmanmkc wants to merge 1 commit intogoogle:mainfrom
salmanmkc:fix-python-tests-workflow

Conversation

@salmanmkc
Copy link
Copy Markdown
Contributor

The build job declares needs: get_sample_dirs, but get_sample_dirs was defined as a step inside build rather than as a separate job. This causes GitHub Actions to reject the workflow with:

The workflow must contain at least one job with no dependencies.

Changes

  • Extracts get_sample_dirs into its own job with proper outputs
  • Replaces undefined $PYTHON_DIR with the actual path (samples/python)
  • Formats the find output as a JSON array for fromJson() compatibility
  • Adds an if condition to skip the build matrix when no sample directories exist

The build job declares `needs: get_sample_dirs`, but get_sample_dirs was
defined as a step inside build rather than as a separate job. This caused
GitHub Actions to reject the workflow with:

  The workflow must contain at least one job with no dependencies.

This commit:
- Extracts get_sample_dirs into its own job with proper outputs
- Replaces undefined $PYTHON_DIR with the actual path (samples/python)
- Formats the find output as JSON array for fromJson() compatibility
- Adds an if condition to skip the build matrix when no samples exist

Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Mar 11, 2026

Deploy Preview for adk-docs-preview ready!

Name Link
🔨 Latest commit b4f24b0
🔍 Latest deploy log https://app.netlify.com/projects/adk-docs-preview/deploys/69b1e084c7df5c00085a2fa1
😎 Deploy Preview https://deploy-preview-1420--adk-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant