Skip to content

chore(lint): ruff + black auto-fix · CI green #84

chore(lint): ruff + black auto-fix · CI green

chore(lint): ruff + black auto-fix · CI green #84

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: pytest (py${{ matrix.python }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install package + dev extras (torch-free smoke)
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Run smoke test suite
env:
POP_SIZE: "10000"
SOUL_POOL_N: "5"
LLM_MODE: "mock"
run: |
pytest tests/ -v --tb=short --durations=10
lint:
name: ruff + black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- run: pip install ruff black
- run: ruff check backend tests --output-format=github
- run: black --check backend tests
# Previously: a public CI job that grep'd the source tree for forbidden terms.
# Removed because the job spec itself enumerated the terms it was looking for
# (self-defeating — any reader could read the patterns out of the workflow).
# Equivalent check now lives in tests/test_smoke.py::test_no_sensitive_terms
# with encoded patterns, and in a private pre-release hook maintained outside
# the public repo.