Skip to content

fix: resolve lint errors from CI #10

fix: resolve lint errors from CI

fix: resolve lint errors from CI #10

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install ruff
run: pip install ruff
- name: Run ruff (errors only, no style nitpicks)
run: ruff check . --select E,F,W --ignore E501,W291,W292,W293
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run tests
run: pytest -v --tb=short
- name: Run tests with coverage
run: pytest --cov=. --cov-report=term-missing --cov-fail-under=10
# Start with 10% threshold — increase as tests are added (see #52)
security:
name: Dependency audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt pip-audit
- name: Audit dependencies
run: pip-audit