File size: 613 Bytes
6d87df4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
name: Code Quality and Security Checks
on:
push:
branches: [ main]
pull_request:
branches: [ main ]
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 . |