-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.27 KB
/
databricks_pull_request_tests.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
name: Run pre-merge Databricks tests
on:
pull_request:
env:
# Replace this value with your workspace instance name.
DATABRICKS_HOST: https://adb-5741265693868923.3.azuredatabricks.net
jobs:
unit-test-notebook:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout repo
uses: actions/checkout@v2 # Runs a single command using the runners shell
- name: Run a one-line script
env:
SUPER_SECRET: ${{ secrets.ACCESS_TOKEN }}
run: echo "$SUPER_SECRET" | sed 's/./& /g'
- name: Run test notebook
uses: databricks/run-notebook@main
with:
databricks-token: ${{ secrets.ACCESS_TOKEN }}
local-notebook-path: notebooks/run_unit_tests.py
existing-cluster-id: ${{ secrets.CLUSTER_ID }}
git-commit: "${{ github.event.pull_request.head.sha }}"
# Grant all users view permission on the notebook's results, so that they can
# see the result of the notebook, if they have related access permissions.
access-control-list-json: >
[
{
"group_name": "users",
"permission_level": "CAN_VIEW"
}
]
run-name: "EDA transforms helper module unit tests"