feat(speakeasy): Add new Speakeasy-based SDK #24
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: {} | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 3 | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Check out the repo | |
| uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| - name: Install poetry | |
| uses: abatilo/actions-poetry@v3 | |
| with: | |
| poetry-version: 2.1.3 | |
| - name: Install dependencies | |
| run: | | |
| poetry install --no-root | |
| - name: Run linter | |
| run: | | |
| poetry run pylint -j=0 tests src | |
| - name: Run tests | |
| env: | |
| PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
| run: | | |
| poetry run pytest tests | |
| - uses: hmarr/auto-approve-action@v4 | |
| if: "github.event.pull_request.user.login == 'github-actions[bot]'" | |
| with: | |
| github-token: ${{ secrets.DISPATCH_ACCESS_TOKEN }} | |
| merge: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - id: automerge | |
| name: automerge | |
| if: "github.event.pull_request.user.login == 'github-actions[bot]'" | |
| uses: "pascalgn/[email protected]" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.DISPATCH_ACCESS_TOKEN }} | |
| MERGE_LABELS: '' | |
| MERGE_REQUIRED_APPROVALS: 0 | |
| MERGE_METHOD: squash | |
| MERGE_COMMIT_MESSAGE: "pull-request-title" | |
| MERGE_ERROR_FAIL: true | |
| MERGE_DELETE_BRANCH: true | |
| MERGE_FORKS: false | |
| UPDATE_METHOD: rebase |