-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.4 KB
/
Copy pathdialect-sqlite.yml
File metadata and controls
48 lines (40 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "Sqlite dialect tests"
on:
workflow_call:
jobs:
dialect-sqlite-tests:
name: Dialect tests (SQLite)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python_version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
drivername: ["sqlite+pysqlite", "sqlite+pysqlcipher", "sqlite+aiosqlite"]
include:
- drivername: "sqlite+pysqlite"
database_url: sqlite:///./database.db
project_directory: example_project
- drivername: "sqlite+pysqlcipher"
database_url: sqlite+pysqlcipher://:example@/database.db
project_directory: example_project
- drivername: "sqlite+aiosqlite"
database_url: sqlite+aiosqlite:///./database.db
project_directory: example_project_async
env:
UV_PYTHON: ${{ matrix.python_version }}
DATABASE_URL: ${{ matrix.database_url }}
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python_version }}
- name: Install uv
uses: astral-sh/setup-uv@v8.2.0
with:
enable-cache: true
cache-suffix: sqlite-${{ matrix.python_version }}
- name: Run example project tests
working-directory: ${{ matrix.project_directory }}
run: uv run --extra sqlite pytest