Skip to content

Commit 1396e42

Browse files
tanbroclaude
andcommitted
fix(ci): add TrustServerCertificate=yes to MSSQL connection strings
ODBC Driver 18 for SQL Server requires SSL certificate verification by default. For CI testing with self-signed certificates, we need to add the TrustServerCertificate=yes parameter to bypass certificate verification. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6d2907f commit 1396e42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ jobs:
163163
- name: Run tests
164164
shell: bash
165165
env:
166-
TEST_URLS: mysql://test:test@127.0.0.1:3306/test postgresql://postgres:test@127.0.0.1:5432/ mssql+pyodbc://sa:YourStrongPassword123@127.0.0.1:1433/master?driver=ODBC+Driver+18+for+SQL+Server
167-
TEST_ASYNC_URLS: mysql+aiomysql://test:test@127.0.0.1:3306/test postgresql+asyncpg://postgres:test@127.0.0.1:5432/ mssql+aioodbc://sa:YourStrongPassword123@127.0.0.1:1433/master?driver=ODBC+Driver+18+for+SQL+Server
166+
TEST_URLS: mysql://test:test@127.0.0.1:3306/test postgresql://postgres:test@127.0.0.1:5432/ mssql+pyodbc://sa:YourStrongPassword123@127.0.0.1:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes
167+
TEST_ASYNC_URLS: mysql+aiomysql://test:test@127.0.0.1:3306/test postgresql+asyncpg://postgres:test@127.0.0.1:5432/ mssql+aioodbc://sa:YourStrongPassword123@127.0.0.1:1433/master?driver=ODBC+Driver+18+for+SQL+Server&TrustServerCertificate=yes
168168
# Oracle: oracle+oracledb://sys:YourStrong@Passw0rd@127.0.0.1:1521/?service_name=XEPDB1
169169
run: |
170170
uv run --no-dev coverage run -m unittest -cfv

0 commit comments

Comments
 (0)