Skip to content

Commit cfd82fe

Browse files
committed
ci: inject dummy environment variables for pydantic settings in pytest
1 parent 90db362 commit cfd82fe

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,13 @@ jobs:
3131
run: poetry run ruff format --check .
3232

3333
- name: Run Pytest
34-
run: poetry run pytest -m "not integration"
34+
env:
35+
DATABASE_URL: "postgresql+asyncpg://user:pass@localhost:5432/testdb"
36+
REDIS_URL: "redis://localhost:6379/0"
37+
SERPER_API_KEY: "dummy_serper_key"
38+
OPENAI_API_KEY: "dummy_openai_key"
39+
GEMINI_API_KEY: "dummy_gemini_key"
40+
SLACK_BOT_TOKEN: "dummy_slack_token"
41+
SLACK_CHANNEL_ID: "dummy_channel_id"
42+
SCRAPE_QUERY: "Python Developer"
43+
run: poetry run pytest

0 commit comments

Comments
 (0)