Commit e4fc021
committed
ci: add GitHub Secrets to workflow for integration tests
Fixes #10
Problem:
Backend integration tests require real API credentials (Supabase, OpenAI,
Pinecone) but CI/CD environment had no access to these, causing 5 test
failures with 'Supabase credentials not configured' errors.
Solution:
Add GitHub Secrets to CI workflow env variables for pytest execution.
Secrets added:
- SUPABASE_URL: Supabase project endpoint
- SUPABASE_ANON_KEY: Supabase anonymous key for auth
- SUPABASE_JWT_SECRET: JWT secret for token verification
- OPENAI_API_KEY: OpenAI API for embeddings
- PINECONE_API_KEY: Pinecone for vector search
- PINECONE_INDEX_NAME: Test index name
Benefits:
✅ Integration tests run against real Supabase instance
✅ JWT authentication flow validated in CI/CD
✅ API endpoint security verified with actual credentials
✅ Better test coverage than mocking
✅ Catches real integration issues before deployment
Note: Secrets must be added in repository settings by maintainer:
Settings → Secrets and variables → Actions → New repository secret1 parent 1451fc7 commit e4fc021
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
35 | 41 | | |
36 | 42 | | |
37 | 43 | | |
| |||
0 commit comments