6
6
types : [opened, synchronize]
7
7
8
8
merge_group :
9
-
9
+
10
10
11
11
jobs :
12
12
check-token :
13
13
name : Check secrets access
14
- runs-on : ubuntu-latest
14
+
15
+ runs-on :
16
+ group : databricks-deco-testing-runner-group
17
+ labels : ubuntu-latest-deco
18
+
15
19
environment : " test-trigger-is"
16
20
outputs :
17
21
has_token : ${{ steps.set-token-status.outputs.has_token }}
@@ -26,14 +30,18 @@ jobs:
26
30
echo "DECO_WORKFLOW_TRIGGER_APP_ID is set. User has access to secrets."
27
31
echo "::set-output name=has_token::true"
28
32
fi
29
-
33
+
30
34
trigger-tests :
31
35
name : Trigger Tests
32
- runs-on : ubuntu-latest
36
+
37
+ runs-on :
38
+ group : databricks-deco-testing-runner-group
39
+ labels : ubuntu-latest-deco
40
+
33
41
needs : check-token
34
42
if : github.event_name == 'pull_request' && needs.check-token.outputs.has_token == 'true'
35
43
environment : " test-trigger-is"
36
-
44
+
37
45
steps :
38
46
- uses : actions/checkout@v3
39
47
@@ -45,26 +53,30 @@ jobs:
45
53
private-key : ${{ secrets.DECO_WORKFLOW_TRIGGER_PRIVATE_KEY }}
46
54
owner : ${{ secrets.ORG_NAME }}
47
55
repositories : ${{secrets.REPO_NAME}}
48
-
56
+
49
57
- name : Trigger Workflow in Another Repo
50
58
env :
51
59
GH_TOKEN : ${{ steps.generate-token.outputs.token }}
52
60
run : |
53
61
gh workflow run sdk-py-isolated-pr.yml -R ${{ secrets.ORG_NAME }}/${{secrets.REPO_NAME}} \
54
62
--ref main \
55
63
-f pull_request_number=${{ github.event.pull_request.number }} \
56
- -f commit_sha=${{ github.event.pull_request.head.sha }}
64
+ -f commit_sha=${{ github.event.pull_request.head.sha }}
57
65
58
- # Statuses and checks apply to specific commits (by hash).
66
+ # Statuses and checks apply to specific commits (by hash).
59
67
# Enforcement of required checks is done both at the PR level and the merge queue level.
60
- # In case of multiple commits in a single PR, the hash of the squashed commit
68
+ # In case of multiple commits in a single PR, the hash of the squashed commit
61
69
# will not match the one for the latest (approved) commit in the PR.
62
70
# We auto approve the check for the merge queue for two reasons:
63
71
# * Queue times out due to duration of tests.
64
72
# * Avoid running integration tests twice, since it was already run at the tip of the branch before squashing.
65
73
auto-approve :
66
74
if : github.event_name == 'merge_group'
67
- runs-on : ubuntu-latest
75
+
76
+ runs-on :
77
+ group : databricks-deco-testing-runner-group
78
+ labels : ubuntu-latest-deco
79
+
68
80
steps :
69
81
- name : Mark Check
70
82
env :
75
87
-H "X-GitHub-Api-Version: 2022-11-28" \
76
88
/repos/${{ github.repository }}/statuses/${{ github.sha }} \
77
89
-f 'state=success' \
78
- -f 'context=Integration Tests Check'
90
+ -f 'context=Integration Tests Check'
0 commit comments