Merge branch 'main' into copilot/fix-rate-limiting-issue #66
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 Tests" | ||
| env: | ||
| PYTHONUTF8: 1 | ||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'python/**' | ||
| - 'test/**' | ||
| - 'nodejs/package.json' | ||
| - '.github/workflows/python-sdk-tests.yml' | ||
| - '.github/actions/setup-copilot/**' | ||
| paths-ignore: | ||
| - '**/*.md' | ||
| - '**/LICENSE*' | ||
| - '**/.gitignore' | ||
| - '**/.editorconfig' | ||
| - '**/*.png' | ||
| - '**/*.jpg' | ||
| - '**/*.jpeg' | ||
| - '**/*.gif' | ||
| - '**/*.svg' | ||
| workflow_dispatch: | ||
| merge_group: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| test: | ||
| name: "Python SDK Tests" | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| runs-on: ${{ matrix.os }} | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| working-directory: ./python | ||
| steps: | ||
| - uses: actions/checkout@v6.0.2 | ||
| - uses: ./.github/actions/setup-copilot | ||
| id: setup-copilot | ||
| - uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Set up uv | ||
| uses: astral-sh/setup-uv@v7 | ||
| with: | ||
| enable-cache: true | ||
| - name: Install Python dev dependencies | ||
| run: uv sync --locked --all-extras --dev | ||
| - name: Run ruff format check | ||
| run: uv run ruff format --check . | ||
| - name: Run ruff lint | ||
| run: uv run ruff check | ||
| - name: Run ty type checking | ||
| run: uv run ty check copilot | ||
| - name: Install test harness dependencies | ||
| working-directory: ./test/harness | ||
| run: npm ci --ignore-scripts | ||
| - name: Warm up PowerShell | ||
| if: runner.os == 'Windows' | ||
| run: pwsh.exe -Command "Write-Host 'PowerShell ready'" | ||
| - name: Run Python SDK tests | ||
| env: | ||
| COPILOT_HMAC_KEY: ${{ secrets.COPILOT_DEVELOPER_CLI_INTEGRATION_HMAC_KEY }} | ||
| COPILOT_CLI_PATH: ${{ steps.setup-copilot.outputs.cli-path }} | ||
| run: uv run pytest -v -s | ||