From b4fcdbcec9ad1751cbd23ef1fc8a4062be0a7620 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Fri, 16 Oct 2026 12:29:13 -0400 Subject: [PATCH 1/2] ci: bump python to 3.15 Python 3.15.0 is out. Co-Authored-By: Claude --- .github/workflows/ruff.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 39d0f43..2a7c0f9 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: - python-version: "3.14" + python-version: "3.15" - name: Install dependencies run: | pip install -U pip diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6e5ea1d..dcdfc17 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,7 @@ jobs: - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: - python-version: "3.14" + python-version: "3.15" - name: Install dependencies run: | pip install -U pip From b22702a4678cf75d8cb1a4beaee8752aad232893 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Fri, 16 Oct 2026 15:30:59 -0400 Subject: [PATCH 2/2] ci: run lint and tests from one workflow Replace ruff.yml and tests.yml with ci.yml (CI): a lint job and a test job, each per sample directory. The build job is now test. Co-Authored-By: Claude --- .github/workflows/ci.yml | 64 +++++++++++++++++++++++++++++++++++++ .github/workflows/ruff.yml | 38 ---------------------- .github/workflows/tests.yml | 38 ---------------------- 3 files changed, 64 insertions(+), 76 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/ruff.yml delete mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7f1854f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +permissions: + contents: read + +jobs: + lint: + runs-on: ubuntu-latest + timeout-minutes: 5 + strategy: + matrix: + directory: + - openai-agents-sdk + defaults: + run: + working-directory: ${{ matrix.directory }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Set up Python + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: "3.15" + - name: Install dependencies + run: | + pip install -U pip + pip install -r requirements.txt + - name: Lint and check formatting + run: | + ruff check . + ruff format --check . + test: + runs-on: ubuntu-latest + timeout-minutes: 5 + strategy: + matrix: + directory: + - openai-agents-sdk + defaults: + run: + working-directory: ${{ matrix.directory }} + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - name: Set up Python + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: "3.15" + - name: Install dependencies + run: | + pip install -U pip + pip install -r requirements.txt + pip install ".[test]" + - name: Run all tests + run: | + pytest diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml deleted file mode 100644 index 2a7c0f9..0000000 --- a/.github/workflows/ruff.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Linting and formatting validation using ruff - -on: - push: - branches: [main] - pull_request: - -permissions: - contents: read - -jobs: - lint: - runs-on: ubuntu-latest - timeout-minutes: 5 - strategy: - matrix: - directory: - - openai-agents-sdk - defaults: - run: - working-directory: ${{ matrix.directory }} - - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Set up Python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 - with: - python-version: "3.15" - - name: Install dependencies - run: | - pip install -U pip - pip install -r requirements.txt - - name: Lint and check formatting with ruff - run: | - ruff check . - ruff format --check . diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml deleted file mode 100644 index dcdfc17..0000000 --- a/.github/workflows/tests.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Run all the unit tests - -on: - push: - branches: [main] - pull_request: - -permissions: - contents: read - -jobs: - build: - runs-on: ubuntu-latest - timeout-minutes: 5 - strategy: - matrix: - directory: - - openai-agents-sdk - defaults: - run: - working-directory: ${{ matrix.directory }} - - steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - name: Set up Python - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 - with: - python-version: "3.15" - - name: Install dependencies - run: | - pip install -U pip - pip install -r requirements.txt - pip install ".[test]" - - name: Run all tests - run: | - pytest