-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (46 loc) · 1.4 KB
/
databricks_gha.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
name: Run a notebook in the current repo on PR
on:
pull_request:
env:
DATABRICKS_HOST: ${{ secrets.DATABRICKS_HOST }}
jobs:
repos-notebook:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Run local notebook
uses: databricks/run-notebook@main
id: upload-repo-run
with:
local-notebook-path: covid_eda.py
git-commit: "${{ github.event.pull_request.head.sha }}"
databricks-token: ${{ secrets.DATABRICKS_TOKEN }}
existing-cluster-id: "0503-133657-ykbcfebd"
#new-cluster-json: >
# {
# "num_workers": 1,
# "spark_version": "10.4.x-scala2.12",
# "node_type_id": "i3.xlarge"
# }
libraries-json: >
[
{"pypi":
{"package": "pytest"}
},
{"pypi":
{"package": "wget"}
}
]
notebook-params-json: >
{"run_as" : "testing"}
# Grant all users view permission on the notebook results, so that they can
# see the result of our CI notebook maybe
access-control-list-json: >
[
{
"group_name": "users",
"permission_level": "CAN_VIEW"
}
]
run-name: "Integration test"