-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
azure-pipelines-cloud-db-integration.yml
49 lines (40 loc) · 1.72 KB
/
azure-pipelines-cloud-db-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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)