Skip to content

Community Revival: Modernize data-diff as v1.0.0 #4

Community Revival: Modernize data-diff as v1.0.0

Community Revival: Modernize data-diff as v1.0.0 #4

Workflow file for this run

name: CI
on:
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
unit_tests:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
- name: Install dependencies
run: uv sync --frozen
- name: Type check (non-blocking)
continue-on-error: true
run: uv tool run ty check --python-version 3.10
- name: Build the stack
run: docker compose up -d mysql postgres presto trino clickhouse vertica
- name: Run tests
env:
DATADIFF_CLICKHOUSE_URI: "clickhouse://clickhouse:Password1@localhost:9000/clickhouse"
DATADIFF_VERTICA_URI: "vertica://vertica:Password1@localhost:5433/vertica"
run: |
chmod +x tests/waiting_for_stack_up.sh
./tests/waiting_for_stack_up.sh && uv run pytest tests/