Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Enable Expectations tests for BigQuery (#3219)
- [FEATURE] Enable Expectations tests for BigQuery (#3219) - Co-authored-by: John DiMatteo <jdimatteo@verily.com>
- Loading branch information
William Shin
committed
Aug 18, 2021
1 parent
5b33a4c
commit 2c89de6
Showing
17 changed files
with
422 additions
and
246 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
stages: | ||
- stage: cloud_db_integration | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
jobs: | ||
- job: bigquery_expectations | ||
timeoutInMinutes: 0 # Maximize the time that pipelines remain open (6 hours currently) | ||
variables: | ||
python.version: '3.8' | ||
|
||
strategy: | ||
matrix: | ||
expectations_cfe: | ||
test_script: 'tests/test_definitions/test_expectations_cfe.py' | ||
expectations: | ||
test_script: 'tests/test_definitions/test_expectations.py' | ||
maxParallel: 1 | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
displayName: 'Use Python $(python.version)' | ||
|
||
- bash: python -m pip install --upgrade pip==20.2.4 | ||
displayName: 'Update pip' | ||
|
||
- script: | | ||
pip install -r requirements-dev.txt | ||
displayName: 'Install dependencies' | ||
- task: DownloadSecureFile@1 | ||
name: gcp_authkey | ||
displayName: 'Download Google Service Account' | ||
inputs: | ||
secureFile: 'superconductive-service-acct.json' | ||
retryCount: '2' | ||
|
||
- script: | | ||
pip install pytest pytest-azurepipelines | ||
pytest -v --no-spark --no-postgresql --bigquery --napoleon-docstrings --junitxml=junit/test-results.xml --cov=. --cov-report=xml --cov-report=html --ignore=tests/cli --ignore=tests/integration/usage_statistics $(test_script) | ||
displayName: 'pytest' | ||
env: | ||
GOOGLE_APPLICATION_CREDENTIALS: $(gcp_authkey.secureFilePath) | ||
GE_TEST_BIGQUERY_PROJECT: $(GE_TEST_BIGQUERY_PROJECT) | ||
GE_TEST_BIGQUERY_DATASET: $(GE_TEST_BIGQUERY_DATASET) |
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
1 change: 1 addition & 0 deletions
1
docs/guides/validation/advanced/how_to_implement_a_custom_validation_action.md
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
|
||
--- | ||
title: How to implement a custom Validation Action | ||
--- | ||
|
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
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
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
Oops, something went wrong.