fix: replace fragile datetime string slicing with robust parser #38
Workflow file for this run
This file contains hidden or 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: 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) | |
| if: matrix.python-version == '3.10' | |
| continue-on-error: true | |
| run: uv tool run ty check --python-version 3.10 | |
| - name: Build the stack | |
| run: docker compose up -d --wait mysql postgres presto trino clickhouse | |
| - name: Run tests | |
| env: | |
| DATADIFF_CLICKHOUSE_URI: "clickhouse://clickhouse:Password1@localhost:9000/clickhouse" | |
| run: | | |
| uv run pytest tests/ \ | |
| -o addopts="--timeout=300 --tb=short" \ | |
| --ignore=tests/test_database_types.py \ | |
| --ignore=tests/test_dbt_config_validators.py \ | |
| --ignore=tests/test_main.py |