From faa408a7c51e9799b9ac0e5ed1783ea653230230 Mon Sep 17 00:00:00 2001 From: Jonavelle Cuerdo Date: Tue, 6 Jan 2026 14:45:40 -0500 Subject: [PATCH 1/2] Update CI to use shared workflows for testing and linting --- .github/workflows/ci.yml | 42 ++++------------------------------------ 1 file changed, 4 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 437109a..c8acb3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,46 +1,12 @@ name: CI on: pull_request: + types: [opened, reopened] paths-ignore: - '.github/**' jobs: test: - # TODO: move this into a shared workflow, https://github.com/MITLibraries/.github/tree/main/.github/workflows - name: Run tests and report coverage - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install uv - uses: astral-sh/setup-uv@v6 - - - name: Create virtual environment - run: | - make install - - - name: Run tests and make coverage report - run: | - make test - make coveralls - - - name: Coveralls - uses: coverallsapp/github-action@v2.3.0 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - fail-on-error: false + uses: mitlibraries/.github/.github/workflows/python-uv-shared-test.yml@IN-1538-create-github-action-with-uv lint: - # TODO: move this into a shared workflow, https://github.com/MITLibraries/.github/tree/main/.github/workflows - name: Run linters - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install uv - uses: astral-sh/setup-uv@v6 - - - name: Create virtual environment - run: | - make install - - - name: Lint - run: make lint + uses: mitlibraries/.github/.github/workflows/python-uv-shared-lint.yml@IN-1538-create-github-action-with-uv + \ No newline at end of file From 43309bfa2901236051d7a7ee519d4d67f5de00a0 Mon Sep 17 00:00:00 2001 From: Jonavelle Cuerdo Date: Tue, 6 Jan 2026 14:58:33 -0500 Subject: [PATCH 2/2] [test] Attempt to trigger CI workflow --- embeddings/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embeddings/cli.py b/embeddings/cli.py index d00a06d..414edea 100644 --- a/embeddings/cli.py +++ b/embeddings/cli.py @@ -23,6 +23,8 @@ if TYPE_CHECKING: from embeddings.models.base import BaseEmbeddingModel +logger.info("[TEST] Attempt to trigger CI workflow") + @click.group("embeddings") @click.option(