Skip to content

Commit

Permalink
removed mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Jan 3, 2024
1 parent 52bd3d9 commit 021784c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/dbt_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,40 +77,6 @@ jobs:
- name: dbt test
run: dbt test --target ${DBT_TARGET}

test-mysql:
name: Test on MySQL
runs-on: ubuntu-latest
container:
image: python:3.11

services:
mysql:
image: mysql
env:
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql

env:
DBT_TARGET: mysql

steps:
- uses: actions/checkout@v4

- name: pip install
run: pip install dbt-core pytz dbt-${DBT_TARGET}

- name: Install DBT deps
run: dbt deps --target ${DBT_TARGET}

- name: load test data
run: dbt seed --target ${DBT_TARGET}

- name: Create seed tests
run: bash tests/create_seeds_tests_yml.sh

- name: dbt test
run: dbt test --target ${DBT_TARGET}

test-snowflake:
name: Test on Snowflake
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions macros/test_generation/get_range_test_suggestions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"SELECT '" ~ column.column ~ "' AS COLNAME, " ~
"MIN(" ~ adapter.quote(column.column) ~ ") as COL_MIN, " ~
"MAX(" ~ adapter.quote(column.column) ~ ") as COL_MAX " ~
loop.index ~ " AS ORDERING " ~
"FROM " ~ table_relation
) %}
{% endfor %}
Expand All @@ -60,6 +61,7 @@
SELECT * FROM (
{{ min_max_exprs | join("\nUNION ALL\n") }}
) t1
ORDER BY ORDERING ASC
{% endset %}

{% set results = testgen.query_as_list(min_max_sql) %}
Expand Down

0 comments on commit 021784c

Please sign in to comment.