Skip to content

Commit 10c9db6

Browse files
tmgbeduclaude
andcommitted
ci: point example/agents tests at the compose Postgres and run migrations
The job-level DB_* env targets the MySQL service on 3306, so the agents app's asyncpg driver was dialing MySQL ('PostgreSQL server at 127.0.0.1:3306 rejected SSL upgrade'). Override DB_PORT to the Postgres service published on 15432 and run db:migrate before the suite. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 835477b commit 10c9db6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,18 @@ jobs:
9393
working-directory: example/agents
9494
run: cp .env.example .env
9595

96+
# The job-level DB_* vars point at MySQL (3306); the agents app uses
97+
# the Postgres service from docker-compose, published on 15432.
98+
- name: Run migrations (agents)
99+
working-directory: example/agents
100+
env:
101+
DB_PORT: 15432
102+
run: uv run python artisan db:migrate
103+
96104
- name: Run tests (agents)
97105
working-directory: example/agents
106+
env:
107+
DB_PORT: 15432
98108
run: uv run pytest tests/ -v
99109

100110
- name: Stop MySQL

0 commit comments

Comments
 (0)