Skip to content

Commit 11f568a

Browse files
committed
Added check to verify pdb.set_trace() was not found in the python scripts
1 parent eec4592 commit 11f568a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check for debug traces
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "src/main/resources/scripts/*.py"
7+
8+
jobs:
9+
grep-pdb:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Find and grep for pdb.set_trace()
17+
run: |
18+
echo "Searching for 'pdb.set_trace()' in Python files..."
19+
grep -rn "pdb.set_trace()" src/main/resources/scripts/*.py || echo "No occurrences found."

0 commit comments

Comments
 (0)