Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/dialect-mariadb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

env:
UV_PYTHON: ${{ matrix.python_version }}
DATABASE_URL: ${{ matrix.drivername }}://root:password@localhost:3306/example
DATABASE_URL: ${{ matrix.drivername }}://root:password@127.0.0.1:3306/example

steps:
- name: Checkout code
Expand All @@ -47,6 +47,9 @@ jobs:
enable-cache: true
cache-suffix: mariadb-${{ matrix.python_version }}

- name: Install pre-requisite packages
run: sudo apt-get update && sudo apt-get install -y libmariadb-dev

- name: Run example project tests
working-directory: example_project
run: uv run --extra mariadb pytest
17 changes: 7 additions & 10 deletions .github/workflows/dialect-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
mysql_version: ["8.0", "8.4", "9.0"]
mysql_version: ["8.0", "8.4", "9.7"]
drivername: ["mysql+mysqldb", "mysql+pymysql", "mysql+mysqlconnector", "mysql+cymysql"]

services:
Expand All @@ -21,16 +21,10 @@ jobs:
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
options: >-
--health-cmd "healthcheck.sh --connect --innodb_initialized"
--health-start-period 10s
--health-interval 10s
--health-timeout 5s
--health-retries 3

env:
UV_PYTHON: ${{ matrix.python_version }}
DATABASE_URL: ${{ matrix.drivername }}://root:password@localhost:3306/example
DATABASE_URL: ${{ matrix.drivername }}://root:password@127.0.0.1:3306/example

steps:
- name: Checkout code
Expand All @@ -45,8 +39,11 @@ jobs:
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
cache-suffix: mariadb-${{ matrix.python_version }}
cache-suffix: mysql-${{ matrix.python_version }}

- name: Install pre-requisite packages
run: sudo apt-get update && sudo apt-get install -y libmysqlclient-dev

- name: Run example project tests
working-directory: example_project
run: uv run --extra mariadb pytest
run: uv run --extra mysql pytest
8 changes: 4 additions & 4 deletions .github/workflows/test-dialects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ on:

jobs:
dialect-sqlite:
if: ${{ inputs.sqlite == 'true' }}
if: ${{ inputs.sqlite }}
uses: ./.github/workflows/dialect-sqlite.yml
secrets: inherit

dialect-postgresql:
if: ${{ inputs.postgresql == 'true' }}
if: ${{ inputs.postgresql }}
uses: ./.github/workflows/dialect-postgresql.yml
secrets: inherit

dialect-mariadb:
if: ${{ inputs.mariadb == 'true' }}
if: ${{ inputs.mariadb }}
uses: ./.github/workflows/dialect-mariadb.yml
secrets: inherit

dialect-mysql:
if: ${{ inputs.mysql == 'true' }}
if: ${{ inputs.mysql }}
uses: ./.github/workflows/dialect-mysql.yml
secrets: inherit
5 changes: 5 additions & 0 deletions example_project/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ sqlite = [
mariadb = [
"cymysql>=1.1.1",
"mariadb>=1.1.14",
"mysqlclient>=2.2.8",
"pymysql>=1.2.0",
]
mysql = [
"cymysql>=1.1.1",
"mysql-connector-python>=9.7.0",
"mysqlclient>=2.2.8",
"pymysql>=1.2.0",
Expand Down
12 changes: 11 additions & 1 deletion example_project/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading