upgrade to support dbt-core v1.6.4 (#52) #182
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: "Integration Test" | |
on: | |
pull_request: | |
push: | |
branches: main | |
jobs: | |
tidb_nightly: | |
name: Python ${{ matrix.python-version }} | TiDB nightly | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10' ] | |
services: | |
tidb_nightly: | |
image: pingcap/tidb:nightly | |
ports: | |
- 4000:4000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
pip install -r requirements_dev.txt | |
- name: Run tests | |
run: | | |
mysql -P4000 -uroot -h127.0.0.1 < tests/functional/adapter/tidb/grant/create_user.sql | |
export DBT_TEST_USER_1=user1 | |
export DBT_TEST_USER_2=user2 | |
export DBT_TEST_USER_3=user3 | |
PYTHONPATH=. pytest tests/functional/adapter/tidb | |
tidb_6_1: | |
name: Python ${{ matrix.python-version }} | TiDB 6.1 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10' ] | |
services: | |
tidb_nightly: | |
image: pingcap/tidb:v6.1.2 | |
ports: | |
- 4000:4000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
pip install -r requirements_dev.txt | |
- name: Run tests | |
run: | | |
mysql -P4000 -uroot -h127.0.0.1 < tests/functional/adapter/tidb/grant/create_user.sql | |
export DBT_TEST_USER_1=user1 | |
export DBT_TEST_USER_2=user2 | |
export DBT_TEST_USER_3=user3 | |
PYTHONPATH=. pytest tests/functional/adapter/tidb | |
tidb_5_3: | |
name: Python ${{ matrix.python-version }} | TiDB 5.3 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10' ] | |
services: | |
tidb_nightly: | |
image: pingcap/tidb:v5.3.2 | |
ports: | |
- 4000:4000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
pip install -r requirements_dev.txt | |
- name: Run tests | |
run: | | |
mysql -P4000 -uroot -h127.0.0.1 < tests/functional/adapter/tidb/grant/create_user.sql | |
export DBT_TEST_USER_1=user1 | |
export DBT_TEST_USER_2=user2 | |
export DBT_TEST_USER_3=user3 | |
PYTHONPATH=. pytest tests/functional/adapter/tidb | |
tidb_5_1: | |
name: Python ${{ matrix.python-version }} | TiDB 5.1 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10' ] | |
services: | |
tidb_5.1: | |
image: pingcap/tidb:v5.1.4 | |
ports: | |
- 4000:4000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
pip install -r requirements_dev.txt | |
- name: Run tests | |
run: | | |
mysql -P4000 -uroot -h127.0.0.1 < tests/functional/adapter/tidb5_1/grant/create_user.sql | |
export DBT_TEST_USER_1=user1 | |
export DBT_TEST_USER_2=user2 | |
export DBT_TEST_USER_3=user3 | |
PYTHONPATH=. pytest tests/functional/adapter/tidb5_1 | |
tidb_4_0: | |
name: Python ${{ matrix.python-version }} | TiDB 4.0 | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10' ] | |
services: | |
tidb_4.0: | |
image: pingcap/tidb:v4.0.16 | |
ports: | |
- 4000:4000 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install requirements | |
run: | | |
pip install -r requirements_dev.txt | |
- name: Run tests | |
run: | | |
mysql -P4000 -uroot -h127.0.0.1 < tests/functional/adapter/tidb4_0/grant/create_user.sql | |
export DBT_TEST_USER_1=user1 | |
export DBT_TEST_USER_2=user2 | |
export DBT_TEST_USER_3=user3 | |
PYTHONPATH=. pytest tests/functional/adapter/tidb4_0 |