fix: cluster name escaping #19
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: "test_matrix" | |
| on: # yamllint disable-line rule:truthy | |
| pull_request: | |
| branches: main | |
| push: | |
| branches-ignore: | |
| - '*_test' | |
| - '*_dev' | |
| - '*_cloud' | |
| paths-ignore: | |
| - '**.md' | |
| - 'LICENSE' | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| name: Python ${{ matrix.python-version }} | Clickhouse ${{ matrix.clickhouse-version}} | Ubuntu | |
| runs-on: ubuntu-latest | |
| env: | |
| TEST_SETTINGS_FILE: latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - '3.12' | |
| - '3.13' | |
| clickhouse-version: | |
| - '25.3' | |
| - latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set environment variables | |
| if: ${{ matrix.clickhouse-version == '22.3' }} | |
| run: | | |
| echo "TEST_SETTINGS_FILE=22_3" >> $GITHUB_ENV | |
| echo "DBT_CH_TEST_CH_VERSION=22.3" >> $GITHUB_ENV | |
| # a fix until docker compose v2.36.0 will be the default version in the github runner | |
| - name: Install Docker Compose v2.36.0 | |
| run: | | |
| sudo mkdir -p /usr/local/lib/docker/cli-plugins | |
| sudo curl -L "https://github.com/docker/compose/releases/download/v2.36.0/docker-compose-linux-x86_64" -o /usr/local/lib/docker/cli-plugins/docker-compose | |
| sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose | |
| docker compose version | |
| - name: Run ClickHouse Cluster Containers | |
| env: | |
| PROJECT_ROOT: ${{ github.workspace }}/tests/integration | |
| run: REPLICA_NUM=1 docker compose -f ${{ github.workspace }}/tests/integration/docker-compose.yml up -d | |
| - name: Setup Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install requirements | |
| run: pip3 install -r dev_requirements.txt | |
| - name: Run HTTP tests | |
| env: | |
| DBT_CH_TEST_CLUSTER: test_shard | |
| run: | | |
| PYTHONPATH="${PYTHONPATH}:dbt" | |
| pytest tests | |
| - name: Run Native tests | |
| env: | |
| DBT_CH_TEST_PORT: 9000 | |
| DBT_CH_TEST_CLUSTER: test_shard | |
| run: | | |
| PYTHONPATH="${PYTHONPATH}:dbt" | |
| pytest tests |