From 1372db2be149af48fab9687fc3eb0fb359d19796 Mon Sep 17 00:00:00 2001 From: Laura Li Foa Wing Date: Wed, 11 Dec 2024 17:03:05 -0800 Subject: [PATCH] Remove duplicate job --- .github/workflows/ci_test_package.yml | 51 ++++----------------------- 1 file changed, 7 insertions(+), 44 deletions(-) diff --git a/.github/workflows/ci_test_package.yml b/.github/workflows/ci_test_package.yml index ef885551..32d33f52 100644 --- a/.github/workflows/ci_test_package.yml +++ b/.github/workflows/ci_test_package.yml @@ -113,7 +113,7 @@ jobs: strategy: fail-fast: false # Don't fail one DWH if the others fail matrix: - warehouse: ["snowflake", "bigquery", "postgres", "sqlserver"] + warehouse: ["snowflake", "bigquery", "postgres"] # When supporting a new version, update the list here version: ["1_3_0", "1_4_0", "1_5_0", "1_6_0", "1_7_0", "1_8_0"] runs-on: ubuntu-latest @@ -194,49 +194,6 @@ jobs: # DBT_VERSION: '' # run: tox -e integration_databricks - integration-sqlserver: - strategy: - fail-fast: false # Don't fail one DWH if the others fail - matrix: - version: [ "1_3_0", "1_4_0", "1_7_0", "1_8_0" ] - runs-on: ubuntu-latest - environment: - name: Approve Integration Tests - - steps: - - uses: actions/setup-python@v4 - with: - python-version: "3.8.x" - architecture: "x64" - - name: Install SQL Server - uses: Particular/install-sql-server-action@v1.2.0 - with: - connection-string-env-var: SQL_SERVER_CONNECTION_STRING - catalog: dbt_artifact_integrationtests - - name: Create DBT User - shell: pwsh - run: | - echo "Create dbt login with sysadmin" - sqlcmd -Q "CREATE LOGIN dbt WITH PASSWORD = '123', CHECK_POLICY = OFF, CHECK_EXPIRATION = OFF" -d "dbt_artifact_integrationtests" - sqlcmd -Q "ALTER SERVER ROLE sysadmin ADD MEMBER dbt" -d "dbt_artifact_integrationtests" - - name: Install tox - run: python3 -m pip install tox - - - name: Install Microsoft ODBC - run: sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y - - - name: Checkout - uses: actions/checkout@v3 - with: - ref: ${{ github.event.pull_request.head.sha }} # Check out the code of the PR - - - name: Run Tests on PR - env: - DBT_VERSION: ${{ matrix.version }} - run: | - echo "Running tests for DBT version: ${{ matrix.version }}" - tox -e integration_sqlserver_${{ matrix.version }} - integration-sqlserver-single-run: strategy: fail-fast: false # Don't fail one DWH if the others fail @@ -252,25 +209,31 @@ jobs: with: python-version: "3.8.x" architecture: "x64" + - name: Install SQL Server uses: Particular/install-sql-server-action@v1.2.0 with: connection-string-env-var: SQL_SERVER_CONNECTION_STRING catalog: dbt_artifact_integrationtests + - name: Create DBT User shell: pwsh run: | echo "Create dbt login with sysadmin" sqlcmd -Q "CREATE LOGIN dbt WITH PASSWORD = '123', CHECK_POLICY = OFF, CHECK_EXPIRATION = OFF" -d "dbt_artifact_integrationtests" sqlcmd -Q "ALTER SERVER ROLE sysadmin ADD MEMBER dbt" -d "dbt_artifact_integrationtests" + - name: Install tox run: python3 -m pip install tox + - name: Install Microsoft ODBC run: sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y + - name: Checkout uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} # Check out the code of the PR + - name: Run Tests on PR env: DBT_VERSION: ${{ matrix.version }}