fix(streaming): coerce Responses API output field to list (#55) #131
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 CI | |
| on: | |
| push: | |
| branches: [ "main", "dev", "dev/**" ] | |
| tags: [ "v*" ] | |
| pull_request: | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| description: 'Git ref (branch, tag, or SHA) to build' | |
| required: false | |
| type: string | |
| default: '' | |
| target_preset: | |
| description: 'Target preset to build' | |
| required: false | |
| type: choice | |
| options: | |
| - all | |
| - windows | |
| - linux | |
| - macos | |
| default: 'all' | |
| skip_tests: | |
| description: 'Skip tests' | |
| required: false | |
| type: boolean | |
| default: false | |
| permissions: | |
| contents: write | |
| jobs: | |
| test: | |
| if: ${{ !inputs.skip_tests && github.event_name != 'push' || github.ref_type != 'tag' }} | |
| uses: CaddyGlow/homebrew-packages/.github/workflows/python-test.yml@main | |
| with: | |
| ref: ${{ inputs.ref || '' }} | |
| python_version: '3.11' | |
| build: | |
| needs: [test] | |
| if: | | |
| always() && | |
| !cancelled() && | |
| (needs.test.result == 'success' || needs.test.result == 'skipped') && | |
| (startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch') | |
| uses: CaddyGlow/homebrew-packages/.github/workflows/python-build.yml@main | |
| with: | |
| ref: ${{ inputs.ref || '' }} | |
| binary_name: ccproxy | |
| entry_point: 'ccproxy.cli.main:main' | |
| extra_smoke_command: 'plugins list' | |
| assets: '["README.md", "LICENSE"]' | |
| target_preset: ${{ inputs.target_preset || 'all' }} | |
| python_version: '3.11' | |
| package: | |
| needs: [test] | |
| if: | | |
| always() && | |
| !cancelled() && | |
| (needs.test.result == 'success' || needs.test.result == 'skipped') && | |
| (startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ inputs.ref || '' }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - name: Build Python distribution | |
| run: ./Taskfile build | |
| - name: Upload Python package artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: python-package | |
| path: dist/* | |
| release: | |
| needs: [build, package] | |
| if: | | |
| always() && | |
| !cancelled() && | |
| needs.build.result == 'success' && | |
| needs.package.result == 'success' && | |
| (startsWith(github.ref, 'refs/tags/') || (github.event_name == 'workflow_dispatch' && startsWith(inputs.ref, 'v'))) | |
| uses: CaddyGlow/homebrew-packages/.github/workflows/python-release.yml@main | |
| with: | |
| ref: ${{ inputs.ref || '' }} |