From 2050b56b53890d78e36fb7ee47973810216a1b2a Mon Sep 17 00:00:00 2001 From: NikanEidi Date: Thu, 5 Mar 2026 18:10:59 -0500 Subject: [PATCH 1/2] =?UTF-8?q?=1B[=3F25hupadated=20main.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95ef674..1a1a7bb 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,14 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.x' - name: Install dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt - pip install pytest - - name: Run StarryNote Tests + - name: Test with pytest run: | - export PYTHONPATH=$PYTHONPATH:. - pytest tests/ \ No newline at end of file + pip install pytest + pytest tests From 6873f7a89c29290a414fbcbbe4cf440e19539666 Mon Sep 17 00:00:00 2001 From: NikanEidi Date: Thu, 5 Mar 2026 18:12:06 -0500 Subject: [PATCH 2/2] =?UTF-8?q?=1B[=3F25hupdate=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 15 +++++++++------ requirements-ci.txt | 15 +++++++++++++++ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 requirements-ci.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1a1a7bb..d664f63 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,14 +19,17 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.x' + python-version: '3.12' - - name: Install dependencies + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y libmagic1 + + - name: Install Python dependencies run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r requirements-ci.txt - name: Test with pytest - run: | - pip install pytest - pytest tests + 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