Skip to content

Commit 17c052b

Browse files
WilliamBergaminClaude
andauthored
ci: add python 3.15 and run lint and tests from one workflow (#17)
* ci: bump python to 3.15 Python 3.15.0 is out. Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> * 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 <svc-devxp-claude@slack-corp.com> --------- Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
1 parent 2e86b5d commit 17c052b

3 files changed

Lines changed: 64 additions & 76 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 5
16+
strategy:
17+
matrix:
18+
directory:
19+
- openai-agents-sdk
20+
defaults:
21+
run:
22+
working-directory: ${{ matrix.directory }}
23+
steps:
24+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25+
with:
26+
persist-credentials: false
27+
- name: Set up Python
28+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
29+
with:
30+
python-version: "3.15"
31+
- name: Install dependencies
32+
run: |
33+
pip install -U pip
34+
pip install -r requirements.txt
35+
- name: Lint and check formatting
36+
run: |
37+
ruff check .
38+
ruff format --check .
39+
test:
40+
runs-on: ubuntu-latest
41+
timeout-minutes: 5
42+
strategy:
43+
matrix:
44+
directory:
45+
- openai-agents-sdk
46+
defaults:
47+
run:
48+
working-directory: ${{ matrix.directory }}
49+
steps:
50+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
51+
with:
52+
persist-credentials: false
53+
- name: Set up Python
54+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
55+
with:
56+
python-version: "3.15"
57+
- name: Install dependencies
58+
run: |
59+
pip install -U pip
60+
pip install -r requirements.txt
61+
pip install ".[test]"
62+
- name: Run all tests
63+
run: |
64+
pytest

‎.github/workflows/ruff.yml‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

‎.github/workflows/tests.yml‎

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)