Skip to content

Commit

Permalink
Fix rag api envs
Browse files Browse the repository at this point in the history
  • Loading branch information
mawandm committed Apr 4, 2024
1 parent 2db8123 commit c8593c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and test
name: Build/Test API

on:
push:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/rag.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and test
name: Build/Test Rag Engine

on:
push:
Expand Down Expand Up @@ -27,7 +27,7 @@ jobs:
python-version: "3.11"
test:
runs-on: ubuntu-latest
name: Test API
name: Test RAG API
services:
postgres:
image: ametnes/postgresql:16-debian-12
Expand Down Expand Up @@ -63,9 +63,9 @@ jobs:
pip install -r nesis/rag/requirements.txt -r nesis/rag/requirements-test.txt -r nesis/rag/requirements-huggingface.txt
- name: Run unit tests
env:
NESIS_API_DATABASE_URL: "postgresql://postgres:password@localhost:5432/nesis"
NESIS_ADMIN_EMAIL: "some.email@domain.com"
NESIS_ADMIN_PASSWORD: "password"
NESIS_MEMCACHE_HOSTS: localhost:11211
NESIS_RAG_PGVECTOR_URL: postgresql://postgres:password@localhost:5432/nesis
NESIS_RAG_EMBEDDING_MODE: local
OPENAI_API_KEY: sk_some_key
run: |
pytest nesis/rag/tests/

0 comments on commit c8593c6

Please sign in to comment.