Skip to content

Commit

Permalink
Add hf_token env varible in rag ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
mawandm committed Apr 25, 2024
1 parent c3f4a02 commit 49e1a14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ on:
paths:
- "nesis/api/core/**"
- "nesis/api/tests/**"
- "nesis/api/core/requirements*"
- "nesis/api/requirements*"
pull_request:
paths:
- "nesis/api/core/**"
- "nesis/api/tests/**"
- "nesis/api/core/requirements*"
- "nesis/api/requirements*"

jobs:
linter:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test_rag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
test:
runs-on: ubuntu-latest
name: Test RAG API
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
services:
postgres:
image: ametnes/postgresql:16-debian-12
Expand Down
2 changes: 1 addition & 1 deletion nesis/rag/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ unstructured.pytesseract==0.3.12
unstructured-inference==0.7.25
pillow_heif==0.16.0

# This causes conflicts from onnxruntime so we attempt to install it last. Do not pin to a version so pip resolves it
# This causes conflicts from onnxruntime, so we attempt to install it last. Do not pin to a version so pip resolves it
llama-index-embeddings-fastembed

0 comments on commit 49e1a14

Please sign in to comment.