@@ -3,7 +3,7 @@ name: Run CI Tests
3
3
4
4
on :
5
5
push :
6
- branches : ['1.1', '1.0']
6
+ branches : ['1.1', '1.0', 'sqlalchemy' ]
7
7
pull_request :
8
8
workflow_dispatch :
9
9
schedule :
38
38
name : build matrix
39
39
uses : rusher/mariadb-test-build-matrix@main
40
40
with :
41
- additional-matrix : ' [{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.9"},{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.10"},{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.11"},{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.12"},{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "pypy3.11", "continue-on-error": true}]'
41
+ additional-matrix : ' [{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.9"},{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.10"},{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.11"},{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.12"},{"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": "3.13"}, {"name": "MariaDB 11.4", "os": "ubuntu-latest", "db-type": "community", "db-tag": "11.4", "python": " pypy3.11", "continue-on-error": true}]'
42
42
43
43
ci :
44
44
name : ${{ matrix.name }} ${{ matrix.python != '' && format(' - python {0}', matrix.python) || '' }}
66
66
registry-user : ${{ matrix.db-type == 'enterprise' && secrets.ENTERPRISE_USER || (secrets.DOCKER_PWD != '' && 'mariadbtest' || '') }}
67
67
registry-password : ${{ matrix.db-type == 'enterprise' && secrets.ENTERPRISE_TOKEN || secrets.DOCKER_PWD }}
68
68
os : ${{ matrix.os }}
69
+ init-script-folder : ${{ format('{0}/.github/workflows/init', github.workspace) }}
69
70
70
71
- uses : actions/setup-python@v5
71
72
id : setup-python
79
80
owner : ' mariadb-corporation'
80
81
repository : ' mariadb-connector-c'
81
82
83
+ - name : Clone SQLAlchemy
84
+ if : ${{ startsWith(matrix.python, '3.13') }}
85
+ uses :
GuillaumeFalourd/[email protected]
86
+ with :
87
+ branch : main
88
+ owner : ' sqlalchemy'
89
+ repository : ' sqlalchemy'
90
+
82
91
- name : c/c make ubuntu
83
92
if : ${{ startsWith(matrix.os, 'ubuntu') }}
84
93
run : |
@@ -114,6 +123,23 @@ jobs:
114
123
echo "MARIADB_CC_INSTALL_DIR=$MARIADB_CC_INSTALL_DIR" >> $env:GITHUB_ENV
115
124
echo "MARIADB_PLUGIN_DIR=$MARIADB_CC_INSTALL_DIR/lib/mariadb/plugin" >> $env:GITHUB_ENV
116
125
126
+ - name : Run SQLAlchemy tests
127
+ if : ${{ startsWith(matrix.python, '3.13') }}
128
+ shell : bash
129
+ run : |
130
+ python --version
131
+ python -m pip install .
132
+ python -m pip install pytest typing_extensions
133
+ cd ${{ github.workspace }}/sqlalchemy
134
+ python -m pytest --dburi=mysql+mariadbconnector://$TEST_DB_USER:$TEST_DB_PASSWORD@$TEST_DB_HOST:$TEST_DB_PORT/$TEST_DB --backend-only
135
+ env :
136
+ TEST_DB_USER : ${{ env.MYSQL_TEST_USER }}
137
+ TEST_DB_HOST : ${{ env.MYSQL_TEST_HOST }}
138
+ TEST_DB_DATABASE : ${{ env.MYSQL_TEST_DB }}
139
+ TEST_DB_PORT : ${{ env.MYSQL_TEST_PORT }}
140
+ TEST_DB_PASSWORD : ${{ env.MYSQL_TEST_PASSWD }}
141
+ TEST_DB : ${{ env.MYSQL_TEST_DB }}
142
+
117
143
- name : Run test suite
118
144
shell : bash
119
145
run : |
@@ -128,4 +154,4 @@ jobs:
128
154
TEST_DB_PORT : ${{ env.MYSQL_TEST_PORT }}
129
155
TEST_DB_PASSWORD : ${{ env.MYSQL_TEST_PASSWD }}
130
156
LOCAL_DB : ${{ steps.setup-env.outputs.database-type }}
131
- PYTHON_VERSION : ${{ steps.setup-python.outputs.python-version }}
157
+ PYTHON_VERSION : ${{ steps.setup-python.outputs.python-version }}
0 commit comments