diff --git a/.github/workflows/readme_sync.yml b/.github/workflows/CI_readme_sync.yml similarity index 83% rename from .github/workflows/readme_sync.yml rename to .github/workflows/CI_readme_sync.yml index 079a4bb1f..545f6aa1e 100644 --- a/.github/workflows/readme_sync.yml +++ b/.github/workflows/CI_readme_sync.yml @@ -12,6 +12,9 @@ jobs: steps: - name: Checkout this repo uses: actions/checkout@v4 + with: + # This will tell tj-actions/changed-files to compare the current pushed commit with the latest in main + fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 @@ -29,8 +32,11 @@ jobs: id: changed-files uses: tj-actions/changed-files@v42 with: + files: integrations/** # Output unique changed directories instead of filenames dir_names: true + # We only care about the name of the integration, i.e. integrations/FOO + dir_names_max_depth: 2 - name: Generate docs env: @@ -41,7 +47,7 @@ jobs: ALL_CHANGED_DIRS: ${{ steps.changed-files.outputs.all_changed_files }} run: | for d in "$ALL_CHANGED_DIRS"; do - echo "$d was changed" + printf %"s\n" $d done - name: Sync preview docs with 2.0 diff --git a/integrations/gradient/src/haystack_integrations/components/embedders/gradient/gradient_document_embedder.py b/integrations/gradient/src/haystack_integrations/components/embedders/gradient/gradient_document_embedder.py index 34fc1f87f..0ecfcbb98 100644 --- a/integrations/gradient/src/haystack_integrations/components/embedders/gradient/gradient_document_embedder.py +++ b/integrations/gradient/src/haystack_integrations/components/embedders/gradient/gradient_document_embedder.py @@ -127,3 +127,6 @@ def run(self, documents: List[Document]): doc.embedding = embedding return {"documents": documents} + + +# TEST! TO BE REMOVED diff --git a/integrations/instructor_embedders/src/haystack_integrations/components/embedders/instructor_embedders/embedding_backend/instructor_backend.py b/integrations/instructor_embedders/src/haystack_integrations/components/embedders/instructor_embedders/embedding_backend/instructor_backend.py index efe35e9b7..a22eaff32 100644 --- a/integrations/instructor_embedders/src/haystack_integrations/components/embedders/instructor_embedders/embedding_backend/instructor_backend.py +++ b/integrations/instructor_embedders/src/haystack_integrations/components/embedders/instructor_embedders/embedding_backend/instructor_backend.py @@ -42,3 +42,6 @@ def __init__( def embed(self, data: List[List[str]], **kwargs) -> List[List[float]]: embeddings = self.model.encode(data, **kwargs).tolist() return embeddings + + +# TEST! TO BE REMOVED