Skip to content

Commit 47a6de0

Browse files
committed
Fix CI comment
1 parent eee2932 commit 47a6de0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/lib-deps-check.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,20 @@ jobs:
4545
echo "Changed files:"
4646
echo "$changed"
4747
48-
# Extract unique module names (top-level only, skip test/)
48+
# Extract unique module names
4949
modules=""
5050
for file in $changed; do
51-
# Skip test files
5251
if [[ "$file" == Lib/test/* ]]; then
53-
continue
52+
# Test files: Lib/test/test_pydoc.py -> test_pydoc, Lib/test/test_pydoc/foo.py -> test_pydoc
53+
module=$(echo "$file" | sed -E 's|^Lib/test/||; s|\.py$||; s|/.*||')
54+
# Skip non-test files in test/ (e.g., support.py, __init__.py)
55+
if [[ ! "$module" == test_* ]]; then
56+
continue
57+
fi
58+
else
59+
# Lib files: Lib/foo.py -> foo, Lib/foo/__init__.py -> foo
60+
module=$(echo "$file" | sed -E 's|^Lib/||; s|/__init__\.py$||; s|\.py$||; s|/.*||')
5461
fi
55-
# Extract module name: Lib/foo.py -> foo, Lib/foo/__init__.py -> foo
56-
module=$(echo "$file" | sed -E 's|^Lib/||; s|/__init__\.py$||; s|\.py$||; s|/.*||')
5762
if [[ -n "$module" && ! " $modules " =~ " $module " ]]; then
5863
modules="$modules $module"
5964
fi
@@ -94,6 +99,7 @@ jobs:
9499
with:
95100
header: lib-deps-check
96101
number: ${{ github.event.pull_request.number }}
102+
recreate: true
97103
message: |
98104
## 📦 Library Dependencies
99105

0 commit comments

Comments
 (0)