-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataBricks-Prod-CI-CD.yml
41 lines (36 loc) · 1.34 KB
/
DataBricks-Prod-CI-CD.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
stages:
- stage: MYBuild
displayName: "My Build"
jobs:
- job: BuildwhlAndRunPytest
pool:
vmImage: 'Ubuntu-20.04'
# variables:
# workingDirectory: '$(System.DefaultWorkingDirectory)/<https://adb-6192355565634015.15.azuredatabricks.net/?o=6192355565634015#folder/1625236476924056>'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.7'
inputs:
versionSpec: '3.7'
addToPath: true
architecture: 'x64'
- script: |
pip install pytest requests setuptools wheel pytest-cov
pip install -U databricks-connect==7.3.*
displayName: 'Load Python Dependencies'
- checkout: self
persistCredentials: true
clean: true
- script: |
echo "y
$(https://adb-6192355565634015.15.azuredatabricks.net)
$(dapi238b624ec6a89bda46554dd0e6769cb5)
$(1014-134316-share404)
$(adb-6192355565634015.15.azuredatabricks.net)
8787" | databricks-connect configure
databricks-connect test
env:
databricks-token: dapi238b624ec6a89bda46554dd0e6769cb5
displayName: 'Configure DBConnect'
# - script: |
# databricks fs cp test-proj/pyspark-lib/configs/config.ini dbfs:/configs/test-proj/config.ini