Skip to content

Commit

Permalink
test commit, to be reverted
Browse files Browse the repository at this point in the history
fine tune action settings

try

try

try

try
  • Loading branch information
masci committed Jan 25, 2024
1 parent e59551c commit 75fa384
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ def run(self, documents: List[Document]):
doc.embedding = embedding

return {"documents": documents}


# TEST! TO BE REMOVED
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 75fa384

Please sign in to comment.