Carry only the code, tests, and user-facing docs that matter to end users; drop the modernization scaffolding accumulated while building it. - Remove the bench harness, results, and environment captures (bench/). - Remove internal docs and research spikes (docs/). - Remove the Makefile; tests run via uv / pytest directly. - Strip the bench harness and quantization-matrix steps from the Tier 2 workflow. The golden-image test drives conversion through the Core ML Converter node at runtime, so no separate convert step is needed. - Replace phase/handoff annotations across code, tests, and config with neutral docstrings and comments.
34 lines
917 B
YAML
34 lines
917 B
YAML
name: Tier 0 — Unit (Linux)
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
# Minimal-deps run: Tier 0 must work without ComfyUI, coremltools, or
|
|
# python_coreml_stable_diffusion (Linux CI image won't have them). The
|
|
# in-tree purity gate (tests/unit/test_tier0_purity.py) double-checks
|
|
# that the suite hasn't started leaking framework imports.
|
|
jobs:
|
|
unit:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install Tier 0 deps
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
# Tier 0 only needs torch + numpy + pytest; everything else
|
|
# is Mac-only.
|
|
python -m pip install \
|
|
"torch==2.0.1" "numpy<1.25" \
|
|
"pytest>=8" "pytest-xdist"
|
|
|
|
- name: Run Tier 0
|
|
run: pytest -m unit tests/ -v
|