[#0] add GitHub workflows to enforce coding standards and practices #1
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: Check No sys.exit() | |
| on: | |
| push: | |
| branches: [ '*' ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| check-no-sys-exit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Ensure sys.exit() is not used | |
| run: | | |
| if grep -r 'sys.exit()' src/; then | |
| echo "❌ sys.exit() is not allowed!" | |
| exit 1 | |
| fi |