ai_tutor / .github /workflows /code_quality_check.yml
XThomasBU
code quality checks added
6d87df4
raw
history blame contribute delete
613 Bytes
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 .