Skip to content

Commit 06843a1

Browse files
author
Daniele Briggi
committed
fix(workflow): dependencies from main index
1 parent 56a2ba9 commit 06843a1

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

action.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,16 @@ runs:
4848

4949
- name: Set up Python
5050
uses: actions/setup-python@v5
51+
with:
52+
python-version: "3.12"
5153

5254
- name: Install SQLite RAG
5355
run: |
5456
python -m pip install --upgrade pip
55-
pip install -i https://test.pypi.org/simple/ sqlite-rag
57+
pip install \
58+
-i https://test.pypi.org/simple/ \
59+
--extra-index-url https://pypi.org/simple \
60+
sqlite-rag
5661
shell: bash
5762

5863
# Cache the downloaded model between workflows
@@ -66,12 +71,17 @@ runs:
6671
restore-keys: |
6772
gguf-${{ inputs.hf_model_id }}-${{ inputs.hf_gguf_file }}-${{ inputs.hf_gguf_update_date }}-
6873
69-
- name: Parse documents and create the database
74+
- name: Download Hugging Face model
7075
run: |
7176
sqlite-rag download-model "${{ inputs.hf_model_id }}" "${{ inputs.hf_gguf_file }}" --local-dir="${{ inputs.hf_model_local_path }}"
77+
if: steps.cache-model.outputs.cache-hit != 'true'
78+
shell: bash
79+
80+
- name: Parse documents and create the database
81+
run: |
7282
sqlite-rag add \
73-
--recursive {{ inputs.source_files }} \
74-
--metadata '{"base_url": "{{ inputs.base_url }}"}'
83+
--recursive "${{ inputs.source_files }}" \
84+
--metadata '{"base_url": "${{ inputs.base_url }}"}'
7585
shell: bash
7686

7787
- name: Upload the database to SQLite Cloud

0 commit comments

Comments
 (0)