Implement kshape ad #11
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Print statements | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| check-print-statements: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Check for print statements in source code | |
| run: | | |
| print_files=$(grep -rnw --include="*.py" dtaianomaly -e 'print(' || true) | |
| if [ -n "$print_files" ]; then | |
| echo "::error::Print statements found in the following files and lines:" | |
| echo "$print_files" | |
| exit 1 | |
| else | |
| echo "No print statements found." | |
| fi |