feat: SQL translator with ClickHouse dialect #1
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: | |
| push: | |
| branches: [main] | |
| jobs: | |
| lint-and-unit: | |
| name: Lint + unit tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: astral-sh/setup-uv@v3 | |
| with: | |
| version: latest | |
| - run: uv sync --all-groups | |
| - run: uv run ruff check | |
| - run: uv run mypy | |
| - run: uv run pytest -m "not parity" | |
| parity: | |
| name: Engine parity (Snowflake) | |
| runs-on: ubuntu-latest | |
| # Skip parity on forked-PR runs — secrets aren't available there. | |
| if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} | |
| needs: lint-and-unit | |
| env: | |
| SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} | |
| SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }} | |
| SNOWFLAKE_ROLE: ${{ secrets.SNOWFLAKE_ROLE }} | |
| SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }} | |
| SNOWFLAKE_DATABASE: ${{ secrets.SNOWFLAKE_DATABASE }} | |
| SNOWFLAKE_SCHEMA: ${{ secrets.SNOWFLAKE_SCHEMA }} | |
| SNOWFLAKE_PRIVATE_KEY_PATH: /tmp/snowflake_pk.p8 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: astral-sh/setup-uv@v3 | |
| - name: Write Snowflake key file | |
| run: | | |
| umask 077 | |
| printf '%s' "${{ secrets.SNOWFLAKE_PRIVATE_KEY }}" > /tmp/snowflake_pk.p8 | |
| - run: uv sync --all-groups | |
| - run: uv run pytest -m parity -n auto |