Skip to content

[3/8] Run Python SDK tests in CI#21895

Open
aibrahim-oai wants to merge 2 commits into
codex/python-sdk-generate-types-from-pinned-runtimefrom
codex/python-sdk-ci
Open

[3/8] Run Python SDK tests in CI#21895
aibrahim-oai wants to merge 2 commits into
codex/python-sdk-generate-types-from-pinned-runtimefrom
codex/python-sdk-ci

Conversation

@aibrahim-oai
Copy link
Copy Markdown
Collaborator

@aibrahim-oai aibrahim-oai commented May 9, 2026

Why

The Python SDK stack now depends on packaging metadata, pinned runtime wheels, generated artifacts, async behavior, and stream interleaving. Those checks need to run in CI so future changes cannot bypass the SDK test suite.

What

  • Add a dedicated python-sdk job to .github/workflows/sdk.yml.
  • Run the job in python:3.12-alpine so dependency resolution exercises the pinned musl runtime wheel.
  • Keep the Python SDK test job parallel to the existing SDK job instead of serializing the full workflow.

Stack

  1. [1/8] Pin Python SDK runtime dependency #21891 [1/8] Pin Python SDK runtime dependency
  2. [2/8] Generate Python SDK types from pinned runtime #21893 [2/8] Generate Python SDK types from pinned runtime
  3. This PR [3/8] Run Python SDK tests in CI
  4. [4/8] Define Python SDK public API surface #21896 [4/8] Define Python SDK public API surface
  5. [5/8] Rename Python SDK package to openai-codex #21905 [5/8] Rename Python SDK package to openai-codex
  6. [6/8] Add high-level Python SDK approval mode #21910 [6/8] Add high-level Python SDK approval mode
  7. [7/8] Add Python SDK app-server integration harness #22014 [7/8] Add Python SDK app-server integration harness
  8. [8/8] Add Python SDK Ruff formatting #22021 [8/8] Add Python SDK Ruff formatting

Verification

  • The added workflow job installs the SDK with uv sync --extra dev --frozen and runs the Python SDK pytest suite.

@aibrahim-oai
Copy link
Copy Markdown
Collaborator Author

@aibrahim-oai aibrahim-oai changed the title Run Python SDK tests in CI [3/3] Run Python SDK tests in CI May 9, 2026
aibrahim-oai and others added 2 commits May 9, 2026 10:24
Add a separate Python SDK runner that installs the pinned musl runtime wheel in an Alpine Python container and runs the SDK pytest suite in parallel with existing SDK checks.

Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
@aibrahim-oai aibrahim-oai force-pushed the codex/python-sdk-generate-types-from-pinned-runtime branch from 7902536 to 242ca6d Compare May 9, 2026 07:24
@aibrahim-oai aibrahim-oai force-pushed the codex/python-sdk-ci branch from 6678d99 to 8b8e868 Compare May 9, 2026 07:24
@aibrahim-oai aibrahim-oai changed the title [3/3] Run Python SDK tests in CI [3/4] Run Python SDK tests in CI May 9, 2026
@aibrahim-oai aibrahim-oai changed the title [3/4] Run Python SDK tests in CI [3/5] Run Python SDK tests in CI May 9, 2026
@aibrahim-oai aibrahim-oai changed the title [3/5] Run Python SDK tests in CI [3/6] Run Python SDK tests in CI May 9, 2026
@aibrahim-oai aibrahim-oai changed the title [3/6] Run Python SDK tests in CI [3/7] Run Python SDK tests in CI May 10, 2026
@aibrahim-oai aibrahim-oai changed the title [3/7] Run Python SDK tests in CI [3/8] Run Python SDK tests in CI May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant