Skip to content

Merge pull request #4 from Trojan3877/copilot/fix-issues-and-document #43

Merge pull request #4 from Trojan3877/copilot/fix-issues-and-document

Merge pull request #4 from Trojan3877/copilot/fix-issues-and-document #43

Workflow file for this run

name: CI
on:
push:
branches: ["main", "copilot/**"]
pull_request:
jobs:
lint-and-test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install dependencies
run: pip install -r requirements.txt
- name: Lint (flake8)
run: flake8 app/ tests/ --max-line-length=100
- name: Format check (black)
run: black --check app/ tests/ --line-length=100
- name: Type check (mypy)
run: mypy app/ --ignore-missing-imports
- name: Security scan (bandit)
run: bandit -r app/ -ll -q
- name: Run tests
run: pytest tests/ -v --tb=short