Remove unnecessary client headers in Python SDK #1597
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: Test Python SDK | |
| on: | |
| workflow_call: | |
| secrets: | |
| E2B_API_KEY: | |
| required: true | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| defaults: | |
| run: | |
| working-directory: ./packages/python-sdk | |
| name: Python SDK -Build and test | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Parse .tool-versions | |
| uses: wistia/[email protected] | |
| with: | |
| filename: '.tool-versions' | |
| uppercase: 'true' | |
| prefix: 'tool_version_' | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '${{ env.TOOL_VERSION_PYTHON }}' | |
| - name: Install and configure Poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: '${{ env.TOOL_VERSION_POETRY }}' | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| installer-parallel: true | |
| - name: Install dependencies | |
| run: poetry install | |
| - name: Test build | |
| run: poetry build | |
| - name: Run tests | |
| run: make test | |
| env: | |
| E2B_API_KEY: ${{ secrets.E2B_API_KEY }} |