Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit f72beb8

Browse files
committed
Add Poetry to import packages CI
1 parent 4d0dee1 commit f72beb8

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/import_packages.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,25 @@ jobs:
5757
skip_unpack: false
5858
if_no_artifact_found: ignore
5959

60-
- name: 'Run import_packages.py'
60+
- name: Install Poetry
6161
run: |
62-
python scripts/import_packages.py --jsonl-dir /tmp --vec-db-path /tmp/sqlite_data/vectordb.db
62+
curl -sSL https://install.python-poetry.org | python3 -
63+
64+
- name: Add Poetry to PATH
65+
run: |
66+
echo "source $HOME/.poetry/env" >> $GITHUB_ENV
67+
68+
- name: Install dependencies with Poetry
69+
run: |
70+
poetry install
71+
72+
- name: 'Run import_packages.py with poetry'
73+
run: |
74+
poetry run python scripts/import_packages.py --jsonl-dir /tmp --vec-db-path /tmp/sqlite_data/vectordb.db
6375
6476
- name: 'Upload SQLite Vector DB File'
6577
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
6678
with:
6779
name: sqlite_vectordb_file
6880
path: /tmp/sqlite_data/vectordb.db
81+
retention-days: 90

0 commit comments

Comments
 (0)