From ffc5427351ea7a596c5c71982be3776f8cb93b1c Mon Sep 17 00:00:00 2001 From: mtt-ai Date: Wed, 29 Apr 2026 20:43:21 -0400 Subject: [PATCH 1/2] build: add [test] extras for pytest+pytest-cov MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Defines a `test` optional-dependencies group so CI can install dev tooling via `pip install -e ".[all,test]"` instead of an ad-hoc `pip install pytest` sidecar. Kept out of `[all]` deliberately — `[all]` is runtime extras only. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 22fb3396..5512c7e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,6 +51,7 @@ leiden = ["graspologic; python_version < '3.13'"] office = ["python-docx", "openpyxl"] video = ["faster-whisper", "yt-dlp"] kimi = ["openai"] +test = ["pytest>=7", "pytest-cov"] all = ["mcp", "neo4j", "pypdf", "html2text", "watchdog", "graspologic; python_version < '3.13'", "python-docx", "openpyxl", "faster-whisper", "yt-dlp", "matplotlib", "openai"] [project.scripts] From 7683df1cd5df6c3769069b1adc8f8414eb92b3ab Mon Sep 17 00:00:00 2001 From: mtt-ai Date: Wed, 29 Apr 2026 21:04:16 -0400 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd34b55e..2effcec1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,16 +2,25 @@ name: CI on: push: - branches: ["v1", "v2", "v3", "v4", "main"] + branches: ["v1", "v2", "v3", "v4", "v5", "main"] pull_request: - branches: ["v1", "v2", "v3", "v4", "main"] + branches: ["v1", "v2", "v3", "v4", "v5", "main"] + workflow_dispatch: + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read jobs: test: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - python-version: ["3.10", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 @@ -20,11 +29,12 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: 'pyproject.toml' - name: Install dependencies run: | - pip install -e ".[mcp,pdf,watch]" - pip install pytest + pip install -e ".[all,test]" - name: Run tests run: |