diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index 73b53ef..12f68bd 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -1,4 +1,4 @@ -name: Build and test +name: Build/Test API on: push: diff --git a/.github/workflows/rag.yml b/.github/workflows/rag.yml index 6ef3380..65cdb9f 100644 --- a/.github/workflows/rag.yml +++ b/.github/workflows/rag.yml @@ -1,4 +1,4 @@ -name: Build and test +name: Build/Test Rag Engine on: push: @@ -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 @@ -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/