From 4e9ae5b08151574d1139deb40a47987357e5183a Mon Sep 17 00:00:00 2001 From: Tiji Mathew Date: Mon, 6 May 2024 11:18:44 -0400 Subject: [PATCH] testing snowsql --- .github/workflows/dev-pytest.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dev-pytest.yml b/.github/workflows/dev-pytest.yml index 08c82ab0..6454e9b9 100644 --- a/.github/workflows/dev-pytest.yml +++ b/.github/workflows/dev-pytest.yml @@ -48,8 +48,8 @@ jobs: SNOWSQL_MAJOR_VERSION: "1.2" SNOWSQL_PATCH_VERSION: "28" SNOWSQL_DOWNLOAD_DIR: "/home/runner/downloads" - SNOWSQL_DEST: "/home/runner/.snowsql/bin" - SNOWSQL_LOGIN_SHELL: "/home/runner/.profile" +# SNOWSQL_DEST: "/home/runner/.snowsql/bin" +# SNOWSQL_LOGIN_SHELL: "/home/runner/.profile" MY_SNOWSQL_CONFIG_FILE: "/home/runner/.snowsql/config" run: | apt-get update -y && apt-get upgrade -y && apt-get install -y curl unzip bash @@ -61,7 +61,7 @@ jobs: variable_substitution = True log_file = /home/runner/.snowsql/log EOL - - name: Test Basics Demo + - name: Test Snowsql env: SNOWSQL_PWD: ${{ env.SNOWFLAKE_PASSWORD }} SNOWSQL_ACCOUNT: ${{ env.SNOWFLAKE_ACCOUNT }} @@ -70,9 +70,19 @@ jobs: SNOWSQL_WAREHOUSE: ${{ env.SNOWFLAKE_WAREHOUSE }} SNOWSQL_ROLE: ${{ env.SNOWFLAKE_ROLE }} MY_TARGET_SCHEMA: BASICS_DEMO_${{ env.SCHEMACHANGE_BUILD_ID }} - run: | - snowsql -D v_target_schema_name=$MY_TARGET_SCHEMA -f ./demo/setup/basics_demo.sql - snowsql -D v_target_schema_name=$MY_TARGET_SCHEMA -f ./demo/teardown/basics_demo.sql + run: snowsql -v +# - name: Test Basics Demo +# env: +# SNOWSQL_PWD: ${{ env.SNOWFLAKE_PASSWORD }} +# SNOWSQL_ACCOUNT: ${{ env.SNOWFLAKE_ACCOUNT }} +# SNOWSQL_USER: ${{ env.SNOWFLAKE_USER }} +# SNOWSQL_DATABASE: ${{ env.SNOWFLAKE_DATABASE }} +# SNOWSQL_WAREHOUSE: ${{ env.SNOWFLAKE_WAREHOUSE }} +# SNOWSQL_ROLE: ${{ env.SNOWFLAKE_ROLE }} +# MY_TARGET_SCHEMA: BASICS_DEMO_${{ env.SCHEMACHANGE_BUILD_ID }} +# run: | +# snowsql -D v_target_schema_name=$MY_TARGET_SCHEMA -f ./demo/setup/basics_demo.sql +# snowsql -D v_target_schema_name=$MY_TARGET_SCHEMA -f ./demo/teardown/basics_demo.sql #- name: Setup SnowCLI connection file # run: | # echo "[connections]" > config.toml