diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95ef674..d664f63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,11 +4,9 @@ on: push: branches: - main - - master pull_request: branches: - main - - master jobs: build: @@ -21,16 +19,17 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.12' - - name: Install dependencies + - name: Install system dependencies run: | - python -m pip install --upgrade pip - - pip install -r requirements.txt - pip install pytest + sudo apt-get update + sudo apt-get install -y libmagic1 - - name: Run StarryNote Tests + - name: Install Python dependencies run: | - export PYTHONPATH=$PYTHONPATH:. - pytest tests/ \ No newline at end of file + python -m pip install --upgrade pip + pip install -r requirements-ci.txt + + - name: Test with pytest + run: pytest tests -v diff --git a/requirements-ci.txt b/requirements-ci.txt new file mode 100644 index 0000000..585d2e3 --- /dev/null +++ b/requirements-ci.txt @@ -0,0 +1,15 @@ +# ═══════════════════════════════════════════════════════════════ +# S T A R R Y N O T E · CI Requirements +# Lightweight deps for GitHub Actions (no Apple Silicon needed) +# ═══════════════════════════════════════════════════════════════ + +# --- Terminal UI --- +rich # Cyberpunk TUI: neon panels, tables, progress bars + +# --- File Processing --- +python-magic # MIME type detection via binary headers (libmagic) +pymupdf # High-performance PDF text & image extraction (fitz) +pillow # Image processing (PIL) for multimodal analysis + +# --- Development & Testing --- +pytest # Unit testing framework