From 319b096472e6731b53f7074e7aa37da7c8b31684 Mon Sep 17 00:00:00 2001 From: Donghao Ren Date: Tue, 23 Sep 2025 09:50:55 -0700 Subject: [PATCH 1/3] test: add basic python install test --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ff7610f..98a2e27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,6 +89,31 @@ jobs: with: path: packages/docs/.vitepress/dist/ + test-python: + runs-on: ubuntu-latest + needs: build + strategy: + matrix: + python-version: ["3.11", "3.12", "3.13"] + steps: + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Download wheel + uses: actions/download-artifact@v4 + with: + name: python-dist + path: dist/ + + - name: Install wheel + run: pip install dist/*.whl + + - name: Run tests + run: | + embedding-atlas --help + publish-pypi: runs-on: ubuntu-latest if: github.event_name == 'release' From 070129653fdde57d67586eb6a531d1c6856da45a Mon Sep 17 00:00:00 2001 From: Donghao Ren Date: Tue, 23 Sep 2025 10:06:39 -0700 Subject: [PATCH 2/3] Update tests --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98a2e27..9e0b7a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -114,6 +114,15 @@ jobs: run: | embedding-atlas --help + python -c "import embedding_atlas" + python -c "from embedding_atlas.projection import compute_text_projection, compute_image_projection, compute_vector_projection" + + pip install jupyterlab anywidget + python -c "from embedding_atlas.widget import EmbeddingAtlasWidget" + + pip install streamlit + python -c "from embedding_atlas.streamlit import embedding_atlas" + publish-pypi: runs-on: ubuntu-latest if: github.event_name == 'release' From c7595be8341ff2b069cfc3ce26049c985426865a Mon Sep 17 00:00:00 2001 From: Donghao Ren Date: Tue, 23 Sep 2025 10:47:30 -0700 Subject: [PATCH 3/3] Update to actions/setup-python@v5 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9e0b7a5..8d9dc8a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: node-version: "22" - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.11"