feat: support psycopg (#425)

This commit is contained in:
Waket Zheng
2025-02-26 17:11:31 +08:00
committed by GitHub
parent 0364ae3f83
commit 49bfbf4e6b
10 changed files with 218 additions and 26 deletions

View File

@@ -89,14 +89,21 @@ jobs:
POSTGRES_PORT: 5432
run: poetry run make _testall
- name: Verify aiomysql support
# Only check the latest version of tortoise
if: matrix.tortoise-orm == 'tortoise024'
run: |
poetry run pip uninstall -y asyncmy
poetry run pip install aiomysql
poetry run make test_mysql
poetry run pip uninstall -y aiomysql
poetry run pip install asyncmy
env:
MYSQL_PASS: root
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
- name: Verify psycopg support
# Only check the latest version of tortoise
if: matrix.tortoise-orm == 'tortoise024'
run: poetry run make test_psycopg
env:
POSTGRES_PASS: 123456
POSTGRES_HOST: 127.0.0.1
POSTGRES_PORT: 5432