Skip to content

Test PR

Test PR #1

Workflow file for this run

name: PR Checks
on:
pull_request: #runs on all branches
jobs:
pr-validation:
name: Run PR Checks
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: "3.13"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run Linter (flake8)
run: |
pip install flake8
flake8 . --count --max-complexity=10 --max-line-length=100 --statistics
- name: Run Tests (pytest)
run: |
pip install pytest
pytest --maxfail=5 --disable-warnings --tb=short
- name: Run Security Scan (Bandit)
run: |
pip install bandit
bandit -r . --exclude tests/