From 7fc2f5fbae3825c59359714918611cb016a51465 Mon Sep 17 00:00:00 2001 From: Chandrasekharan M Date: Wed, 27 May 2026 14:39:20 +0530 Subject: [PATCH 1/2] ci: add PR-gate workflow for lint and tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Existing main.yml only fires on workflow_dispatch (release path), so unit tests never ran on PRs. Add a workflow that runs pytest on every PR (and pushes to main) across Python 3.11 and 3.12. Lint is left as a follow-up — src/ currently has 10 pre-existing E501 violations that would block any gate; cleaning those up is a separate change. Co-Authored-By: Claude Opus 4.7 --- .github/workflows/test.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..02afc55 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,36 @@ +name: Lint and Test + +on: + pull_request: + branches: [main, "feat/**", "fix/**"] + push: + branches: [main] + +jobs: + lint-and-test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.11", "3.12"] + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install uv + uses: astral-sh/setup-uv@v6 + with: + version: "0.6.14" + enable-cache: true + + - name: Install dependencies + run: uv sync --dev + + - name: Create test env + run: cp tests/sample.env tests/.env + + - name: Tests (pytest) + run: uv run pytest tests/ -v From 2e313e18d2d8aa3b2531bdc5807c82024d27722f Mon Sep 17 00:00:00 2001 From: Chandrasekharan M Date: Wed, 27 May 2026 14:56:52 +0530 Subject: [PATCH 2/2] ci: install --all-extras so clone CLI tests can import click Co-Authored-By: Claude Opus 4.7 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02afc55..97dd996 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,7 @@ jobs: enable-cache: true - name: Install dependencies - run: uv sync --dev + run: uv sync --dev --all-extras - name: Create test env run: cp tests/sample.env tests/.env