Skip to content

Commit 96769e5

Browse files
committed
test: add google maps api key
1 parent 37068ee commit 96769e5

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/actions/tests/python/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ inputs:
2727
description: "The Pinecone environment"
2828
required: true
2929
type: string
30+
google-api-key:
31+
description: "Google Maps API key"
32+
required: true
33+
type: string
3034

3135
runs:
3236
using: "composite"
@@ -93,6 +97,7 @@ runs:
9397
shell: bash
9498
run: |
9599
touch ./.env
100+
echo "GOOGLE_MAPS_API_KEY=${{ env.GOOGLE_MAPS_API_KEY }}" >> ./.env
96101
echo "OPENAI_API_ORGANIZATION=${{ env.OPENAI_API_ORGANIZATION }}" >> ./.env
97102
echo "OPENAI_API_KEY=${{ env.OPENAI_API_KEY }}" >> ./.env
98103
echo "PINECONE_API_KEY=${{ env.PINECONE_API_KEY }}" >> ./.env
@@ -103,6 +108,7 @@ runs:
103108
OPENAI_API_KEY: ${{ inputs.openai-api-key }}
104109
PINECONE_API_KEY: ${{ inputs.pinecone-api-key }}
105110
PINECONE_ENVIRONMENT: ${{ inputs.pinecone-environment }}
111+
GOOGLE_MAPS_API_KEY: ${{ inputs.google-api-key }}
106112

107113
- name: Run Python unit tests
108114
shell: bash

.github/workflows/runTests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
uses: ./.github/actions/tests/python
3333
with:
3434
python-version: "${{ env.python-version}}"
35+
google-api-key: "${{ secrets.GOOGLE_API_KEY }}"
3536
openai-api-organization: "${{ secrets.OPENAI_API_ORGANIZATION }}"
3637
openai-api-key: "${{ secrets.OPENAI_API_KEY }}"
3738
pinecone-api-key: "${{ secrets.PINECONE_API_KEY }}"

.github/workflows/testsPython.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
uses: ./.github/actions/tests/python
3939
with:
4040
python-version: "${{ env.python-version}}"
41+
google-api-key: "${{ secrets.GOOGLE_API_KEY }}"
4142
openai-api-organization: "${{ secrets.OPENAI_API_ORGANIZATION }}"
4243
openai-api-key: "${{ secrets.OPENAI_API_KEY }}"
4344
pinecone-api-key: "${{ secrets.PINECONE_API_KEY }}"

0 commit comments

Comments
 (0)