feat: add support for request idempotency keys #3
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: Python SDK CI/CD | |
| on: | |
| pull_request: | |
| branches: [ main, master ] | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| validate: | |
| name: Build & Validate Python SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install dependencies & tools | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install ruff build | |
| - name: Run Ruff (Linter & Formatter) | |
| run: ruff check . | |
| - name: Verify Package Build | |
| run: python -m build | |
| publish: | |
| name: Publish to PyPI | |
| needs: validate | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| environment: release | |
| permissions: | |
| id-token: write # Required for Trusted Publishing OIDC | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Build distributions | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install build | |
| python -m build | |
| - name: Publish package to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 |