forked from brooklyn-data/dbt_artifacts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
143 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,3 +193,86 @@ jobs: | |
# env: | ||
# DBT_VERSION: '' | ||
# run: tox -e integration_databricks | ||
|
||
integration-sqlserver: | ||
strategy: | ||
fail-fast: false # Don't fail one DWH if the others fail | ||
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/[email protected] | ||
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: tox -e integration_sqlserver | ||
|
||
integration-sqlserver-single-run: | ||
strategy: | ||
fail-fast: false # Don't fail one DWH if the others fail | ||
matrix: | ||
# 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 | ||
|
||
steps: | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8.x" | ||
architecture: "x64" | ||
- name: Install SQL Server | ||
uses: Particular/[email protected] | ||
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: tox -e integration_sqlserver_${{ matrix.version }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
integration: | ||
strategy: | ||
matrix: | ||
warehouse: ["snowflake", "bigquery", "postgres", "sqlserver"] | ||
warehouse: ["snowflake", "bigquery", "postgres"] | ||
version: ["1_3_0", "1_4_0", "1_5_0", "1_6_0", "1_7_0", "1_8_0"] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
|
@@ -102,3 +102,45 @@ jobs: | |
|
||
# - name: Run Databricks Tests | ||
# run: tox -e integration_databricks | ||
|
||
integration-sqlserver: | ||
strategy: | ||
fail-fast: false # Don't fail one DWH if the others fail | ||
matrix: | ||
# When supporting a new version, update the list here | ||
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/[email protected] | ||
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: tox -e integration_sqlserver_${{ matrix.version }} |
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
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