Skip to content

Commit

Permalink
Fix ci test package
Browse files Browse the repository at this point in the history
  • Loading branch information
llifoawing committed Dec 11, 2024
1 parent 91d0a6e commit 31a535c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/ci_test_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ jobs:
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
Expand Down Expand Up @@ -231,7 +233,9 @@ jobs:
- name: Run Tests on PR
env:
DBT_VERSION: ${{ matrix.version }}
run: tox -e integration_sqlserver
run: |
echo "Running tests for DBT version: ${{ matrix.version }}"
tox -e integration_sqlserver_${{ matrix.version }}
integration-sqlserver-single-run:
strategy:
Expand All @@ -240,9 +244,9 @@ jobs:
# When supporting a new version, update the list here
version: ["1_3_0", "1_4_0", "1_7_0", "1_8_0"]
run: tox -e integration_sqlserver_${{ matrix.version }}
runs-on: ubuntu-latest
environment:
name: Approve Integration Tests
runs-on: ubuntu-latest
environment:
name: Approve Integration Tests

steps:
- uses: actions/setup-python@v4
Expand All @@ -257,9 +261,9 @@ jobs:
- 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"
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
Expand All @@ -271,4 +275,5 @@ jobs:
- name: Run Tests on PR
env:
DBT_VERSION: ${{ matrix.version }}
run: tox -e integration_sqlserver_${{ matrix.version }}
run: |
echo "Running tests for DBT version: ${{ matrix.version }}"

0 comments on commit 31a535c

Please sign in to comment.