File tree Expand file tree Collapse file tree 2 files changed +25
-12
lines changed
tests/integration_tests/clients/bedrock Expand file tree Collapse file tree 2 files changed +25
-12
lines changed Original file line number Diff line number Diff line change 2929 github_token : ${{ secrets.GITHUB_TOKEN }}
3030 labels : lgtm
3131
32+ - name : Enable auto-merge
33+ uses : actions/github-script@v7
34+ with :
35+ script : |
36+ await github.graphql(`
37+ mutation enableAutoMerge($pullRequestId: ID!, $mergeMethod: PullRequestMergeMethod!) {
38+ enablePullRequestAutoMerge(input: {
39+ pullRequestId: $pullRequestId,
40+ mergeMethod: $mergeMethod
41+ }) {
42+ pullRequest {
43+ autoMergeRequest {
44+ enabledAt
45+ mergeMethod
46+ }
47+ }
48+ }
49+ }
50+ `, {
51+ pullRequestId: context.payload.pull_request.node_id,
52+ mergeMethod: 'SQUASH'
53+ });
54+ console.log('Auto-merge enabled with squash method');
55+
3256 - name : Install Poetry
3357 run : |
3458 pipx install poetry==1.8
@@ -104,15 +128,3 @@ jobs:
104128 name : pytest-results-pr-approval
105129 path : junit/test-results-*.xml
106130 if : always()
107-
108- - name : Auto-merge PR
109- if : success()
110- uses : actions/github-script@v7
111- with :
112- script : |
113- await github.rest.pulls.merge({
114- owner: context.repo.owner,
115- repo: context.repo.repo,
116- pull_number: context.issue.number,
117- merge_method: 'squash'
118- })
Original file line number Diff line number Diff line change 1212]
1313
1414
15+ @pytest .mark .skip (reason = "For some reason this test is flaky" )
1516def test_chat_completions__when_stream__last_chunk_should_hold_bedrock_metrics ():
1617 client = AI21BedrockClient ()
1718 response = client .chat .completions .create (
You can’t perform that action at this time.
0 commit comments