fix(openai): say the word 'json' that json_object requires #27
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] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # The supported floor and the current stable release. | |
| python-version: ["3.11", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Sync (no provider extras, on purpose) | |
| run: uv sync --locked | |
| - name: Verify Python version | |
| run: >- | |
| uv run python -c | |
| 'import os, sys; expected = tuple(map(int, os.environ["UV_PYTHON"].split("."))); | |
| assert sys.version_info[:2] == expected, (sys.version, expected)' | |
| - name: Lint | |
| run: uv run ruff check . | |
| - name: Format | |
| run: uv run ruff format --check . | |
| - name: Types | |
| run: uv run mypy | |
| - name: Tests | |
| run: uv run pytest | |
| - name: Build sdist and wheel | |
| run: uv build | |
| # The same audit both publishers run, moved to every pull request. A | |
| # packaging regression is otherwise invisible until release day, which is | |
| # exactly when nobody wants to discover it: 0.6.0's sdist carried a local | |
| # .env and built, uploaded and installed perfectly well. | |
| - name: Audit what would be published | |
| run: python3 scripts/audit_dist.py |