Repository navigation
Expand file tree
/
Copy pathpython-openai-dependency-bounds.yml
More file actions
65 lines (61 loc) · 2.29 KB
/
Copy pathpython-openai-dependency-bounds.yml
File metadata and controls
65 lines (61 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Python - OpenAI Dependency Bounds
on:
pull_request:
branches: ["main", "feature*"]
paths:
- ".github/actions/python-setup/**"
- ".github/workflows/python-openai-dependency-bounds.yml"
- "python/packages/devui/**"
- "python/packages/hosting-responses/**"
- "python/packages/openai/**"
- "python/pyproject.toml"
- "python/scripts/dependencies/**"
- "python/samples/04-hosting/container/hyperlight_codeact/call_server.py"
- "python/shared_tasks.toml"
- "python/tooling/requirements-typing.txt"
permissions:
contents: read
env:
UV_CACHE_DIR: /tmp/.uv-cache
UV_PYTHON: "3.13"
jobs:
openai-dependency-bounds:
name: OpenAI ${{ matrix.name }}
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- name: integration 2.x floor
package: openai
module: agent_framework_openai
requirement: openai==2.25.0
- name: integration 3.x floor
package: openai
module: agent_framework_openai
requirement: openai==3.0.0
- name: DevUI 3.x floor
package: devui
module: agent_framework_devui
requirement: openai==3.0.0
- name: hosting responses 3.x floor
package: hosting-responses
module: agent_framework_hosting_responses
requirement: openai==3.0.0
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python and install the project
uses: ./.github/actions/python-setup
with:
python-version: ${{ env.UV_PYTHON }}
os: ${{ runner.os }}
- name: Install ${{ matrix.name }}
run: uv pip install "${{ matrix.requirement }}"
working-directory: ./python
- name: Test and type-check ${{ matrix.name }}
run: |
uv run --no-sync python -c "import openai; print(f'OpenAI SDK {openai.__version__}')"
uv run --no-sync python -m pytest -m "not integration" --cov=${{ matrix.module }} --cov-report=term-missing:skip-covered tests
uv run --no-sync --with-requirements ../../tooling/requirements-typing.txt pyright
working-directory: ./python/packages/${{ matrix.package }}