Commit 68b5ece
Fix python-tests workflow: split get_sample_dirs into its own job (#1420)
* Fix python-tests workflow: split get_sample_dirs into its own job
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>
* Update actions/checkout from v4 to v6
---------
Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
Co-authored-by: Kristopher Overholt <koverholt@google.com>1 parent cb2a85b commit 68b5ece
1 file changed
Lines changed: 20 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
36 | 52 | | |
37 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
38 | 57 | | |
39 | 58 | | |
40 | 59 | | |
41 | 60 | | |
42 | 61 | | |
43 | 62 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 63 | | |
48 | 64 | | |
49 | 65 | | |
50 | 66 | | |
51 | 67 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
94 | | - | |
| 103 | + | |
0 commit comments