| name: Code Quality and Security Checks | |
| on: | |
| push: | |
| branches: [ main, dev_branch ] | |
| pull_request: | |
| branches: [ main, dev_branch ] | |
| jobs: | |
| code-quality: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 black bandit | |
| - name: Run Black | |
| run: black --check . | |
| - name: Run Flake8 | |
| run: flake8 . | |
| - name: Run Bandit | |
| run: | | |
| bandit -r . | 
