Make chdb
an optional dependency
#25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clickhouse tests | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "splink/**" | |
- "tests/**" | |
- "pyproject.toml" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
services: | |
clickhouse_splink_ci: | |
image: clickhouse/clickhouse-server:24.8 | |
env: | |
CLICKHOUSE_USER: splinkognito | |
CLICKHOUSE_PASSWORD: splink123! | |
ports: | |
- 8123:8123 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
name: Run tests with Python ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup uv | |
id: setup-uv | |
uses: astral-sh/setup-uv@v2 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Install Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: uv sync -p ${{ matrix.python-version }} | |
- name: Run chdb tests | |
run: uv run pytest -vm clickhouse_no_core tests/ |