@@ -11,6 +11,26 @@ inputs:
1111 description : " The version of Python to use, such as 3.11.0"
1212 required : true
1313 type : string
14+ openai-api-organization :
15+ description : " The OpenAI API organization"
16+ required : true
17+ type : string
18+ openai-api-key :
19+ description : " The OpenAI API key"
20+ required : true
21+ type : string
22+ pinecone-api-key :
23+ description : " The Pinecone API key"
24+ required : true
25+ type : string
26+ pinecone-environment :
27+ description : " The Pinecone environment"
28+ required : true
29+ type : string
30+ pinecone-index-name :
31+ description : " The Pinecone index name"
32+ required : true
33+ type : string
1434
1535env :
1636 REQUIREMENTS_PATH : " api/terraform/python/layer_genai/requirements.txt"
@@ -60,14 +80,16 @@ runs:
6080 echo "OPENAI_API_KEY=${{ env.OPENAI_API_KEY }}" >> ./.env
6181 echo "PINECONE_API_KEY=${{ env.PINECONE_API_KEY }}" >> ./.env
6282 echo "PINECONE_ENVIRONMENT=${{ env.PINECONE_ENVIRONMENT }}" >> ./.env
83+ echo "PINECONE_INDEX_NAME=${{ env.PINECONE_INDEX_NAME }}" >> ./.env
6384 env :
64- OPENAI_API_ORGANIZATION : " SET-ME-PLEASE"
65- OPENAI_API_KEY : " SET-ME-PLEASE"
66- PINECONE_API_KEY : " SET-ME-PLEASE"
67- PINECONE_ENVIRONMENT : " SET-ME-PLEASE"
85+ OPENAI_API_ORGANIZATION : ${{ inputs.openai-api-organization }}
86+ OPENAI_API_KEY : ${{ inputs.openai-api-key }}
87+ PINECONE_API_KEY : ${{ inputs.pinecone-api-key }}
88+ PINECONE_ENVIRONMENT : ${{ inputs.pinecone-environment }}
89+ PINECONE_INDEX_NAME : ${{ inputs.pinecone-index-name }}
6890
6991 - name : Run Tests
7092 shell : bash
7193 run : |
72- cd ./grader
73- pytest -v -s tests/
94+ cd models && pytest -v -s tests/
95+ python -m setup_test
0 commit comments