Skip to content

Commit ddc250f

Browse files
committed
chore: updated integration-tests action to inject github secrets into env
1 parent 545d990 commit ddc250f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,23 @@ jobs:
6868
run: |
6969
curl -sSL https://install.python-poetry.org | python3 -
7070
71-
# Cache Poetry Dependencies - leverages cached dependencies from Unit Tests job when available
71+
# Inject Secrets as Environment Variables
72+
- name: Set up environment variables
73+
run: |
74+
echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" >> $GITHUB_ENV
75+
echo "GOOGLE_API_KEY=${{ secrets.GOOGLE_API_KEY }}" >> $GITHUB_ENV
76+
echo "BEDROCK_ACCESS_KEY=${{ secrets.BEDROCK_ACCESS_KEY }}" >> $GITHUB_ENV
77+
echo "BEDROCK_SECRET_KEY=${{ secrets.BEDROCK_SECRET_KEY }}" >> $GITHUB_ENV
78+
echo "BEDROCK_REGION=${{ secrets.BEDROCK_REGION }}" >> $GITHUB_ENV
79+
80+
# Cache Poetry Dependencies
7281
- name: Cache Poetry dependencies (Integration Tests)
7382
uses: actions/cache@v3
7483
with:
7584
path: ~/.cache/pypoetry
7685
key: poetry-integration-${{ runner.os }}-${{ hashFiles('libs/llmstudio/poetry.lock') }}
7786
restore-keys: |
7887
poetry-integration-${{ runner.os }}-
79-
poetry-unit-${{ runner.os }}-
8088
8189
# Install llmstudio
8290
- name: Install llmstudio

0 commit comments

Comments
 (0)