acc: run model_serving_endpoints/basic locally #4723
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR approval | |
| on: | |
| pull_request_target: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| pull_request_review: | |
| types: [submitted, dismissed] | |
| merge_group: | |
| types: [checks_requested] | |
| # No concurrency group: a run cancelled by concurrency leaves a stuck failing | |
| # check, since each run posts its own check-run and a later passing run does not | |
| # clear it. The check is cheap and idempotent, so let every run finish instead. | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| # Auto-approve maintainer-approval for merge queue entries. | |
| # PRs are already approved before entering the merge queue, | |
| # so we just need to set the status on the merge queue commit. | |
| merge-queue-approval: | |
| if: ${{ github.event_name == 'merge_group' }} | |
| runs-on: | |
| group: databricks-deco-testing-runner-group | |
| labels: ubuntu-latest-deco | |
| permissions: | |
| checks: write | |
| steps: | |
| - name: Auto-approve for merge queue | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| script: | | |
| await github.rest.checks.create({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| head_sha: context.sha, | |
| name: 'maintainer-approval', | |
| status: 'completed', | |
| conclusion: 'success', | |
| output: { | |
| title: 'maintainer-approval', | |
| summary: 'Auto-approved (merge queue)', | |
| }, | |
| }); | |
| check: | |
| runs-on: | |
| group: databricks-deco-testing-runner-group | |
| labels: ubuntu-latest-deco | |
| if: ${{ github.event_name != 'merge_group' && !github.event.pull_request.draft }} | |
| timeout-minutes: 5 | |
| permissions: | |
| pull-requests: write | |
| checks: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| ref: ${{ github.event.pull_request.base.sha }} | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: Check approval and suggest reviewers | |
| uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 | |
| with: | |
| retries: 3 | |
| script: |- | |
| const script = require('./.github/workflows/maintainer-approval.js'); | |
| await script({ context, github, core }); |