Skip to content

Commit 36e6f37

Browse files
authored
openai: test on python 3.13 (#78)
1 parent 84a3f24 commit 36e6f37

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,15 @@ jobs:
4343
py310: "3.10"
4444
py311: "3.11"
4545
py312: "3.12"
46+
py313: "3.13"
4647
# Baseline version of openai client we support
4748
baseline: "1.2.0"
4849
latest: ""
4950
working_dir: "instrumentation/elastic-opentelemetry-instrumentation-openai"
5051
strategy:
5152
fail-fast: false
5253
matrix:
53-
python-version: [py38, py39, py310, py311, py312]
54+
python-version: [py38, py39, py310, py311, py312, py313]
5455
openai-version: [baseline, latest]
5556
steps:
5657
- uses: actions/checkout@v4
@@ -72,7 +73,7 @@ jobs:
7273
working-directory: ${{ env.working_dir }}
7374
- run: pytest
7475
working-directory: ${{ env.working_dir }}
75-
- if: ${{ env[matrix.python-version] == '3.12' && !env[matrix.openai-version] && env.OPENAI_API_KEY != '' }}
76+
- if: ${{ env[matrix.python-version] == '3.13' && !env[matrix.openai-version] && env.OPENAI_API_KEY != '' }}
7677
# Only run on latest python and openai client version because we are calling openai
7778
run: pytest --integration-tests
7879
working-directory: ${{ env.working_dir }}

instrumentation/elastic-opentelemetry-instrumentation-openai/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ classifiers = [
2323
"Programming Language :: Python :: 3.10",
2424
"Programming Language :: Python :: 3.11",
2525
"Programming Language :: Python :: 3.12",
26+
"Programming Language :: Python :: 3.13",
2627
]
2728
dependencies = [
2829
# 1.31.0 is required for proper histogram bucket advisory support

0 commit comments

Comments
 (0)