Skip to content

Commit 09cd663

Browse files
committed
Fixed the error of example structure in CI
1 parent 9dedba1 commit 09cd663

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/tests.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,13 @@ jobs:
9595
9696
- name: Validate example structure
9797
run: |
98-
# Check that each module has exactly 5 examples
99-
for module in examples/module*/; do
100-
count=$(find "$module" -maxdepth 1 -name "*.py" | wc -l)
101-
if [ "$count" -ne 5 ]; then
102-
echo "Error: $module should have exactly 5 Python examples, found $count"
103-
exit 1
104-
fi
105-
done
98+
# Check that we have the expected total number of examples (45)
99+
total_examples=$(find examples/module*/ -maxdepth 1 -name "*.py" | wc -l)
100+
if [ "$total_examples" -ne 45 ]; then
101+
echo "Error: Expected 45 total examples, found $total_examples"
102+
exit 1
103+
fi
104+
echo "✅ Found $total_examples examples across 8 modules"
106105
107106
- name: Check for placeholder content
108107
run: |

0 commit comments

Comments
 (0)