Skip to content

Commit ccb7f9c

Browse files
committed
ci: Use GitHub Actions secrets for OpenAI API key
1 parent 7ccac31 commit ccb7f9c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,8 @@ jobs:
3838
3939
# Step 5: Run the unit tests with Pytest
4040
- name: Test with Pytest
41+
# Add this 'env' block to inject the secret
42+
env:
43+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
4144
run: |
4245
pytest

0 commit comments

Comments
 (0)