Skip to content

Commit f8b9069

Browse files
authored
tests: Update tox (#4913)
### Description Updating tox + reorg the AI group alphabetically. New openai release doesn't work on 3.8, explicitly testing on 3.9+ from there Doing this now to unblock #4906 (comment) #### Issues <!-- * resolves: #1234 * resolves: LIN-1234 --> #### Reminders - Please add tests to validate your changes, and lint your code using `tox -e linters`. - Add GH Issue ID _&_ Linear ID (if applicable) - PR title should use [conventional commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type) style (`feat:`, `fix:`, `ref:`, `meta:`) - For external contributors: [CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md), [Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord community](https://discord.gg/Ww9hbqr)
1 parent 97d6756 commit f8b9069

File tree

5 files changed

+72
-61
lines changed

5 files changed

+72
-61
lines changed

.github/workflows/test-integrations-ai.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ jobs:
5858
run: |
5959
set -x # print commands that are executed
6060
./scripts/runtox.sh "py${{ matrix.python-version }}-cohere"
61+
- name: Test google_genai
62+
run: |
63+
set -x # print commands that are executed
64+
./scripts/runtox.sh "py${{ matrix.python-version }}-google_genai"
65+
- name: Test huggingface_hub
66+
run: |
67+
set -x # print commands that are executed
68+
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub"
6169
- name: Test langchain-base
6270
run: |
6371
set -x # print commands that are executed
@@ -66,6 +74,10 @@ jobs:
6674
run: |
6775
set -x # print commands that are executed
6876
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-notiktoken"
77+
- name: Test langgraph
78+
run: |
79+
set -x # print commands that are executed
80+
./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph"
6981
- name: Test litellm
7082
run: |
7183
set -x # print commands that are executed
@@ -78,22 +90,10 @@ jobs:
7890
run: |
7991
set -x # print commands that are executed
8092
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken"
81-
- name: Test langgraph
82-
run: |
83-
set -x # print commands that are executed
84-
./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph"
85-
- name: Test google_genai
86-
run: |
87-
set -x # print commands that are executed
88-
./scripts/runtox.sh "py${{ matrix.python-version }}-google_genai"
8993
- name: Test openai_agents
9094
run: |
9195
set -x # print commands that are executed
9296
./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents"
93-
- name: Test huggingface_hub
94-
run: |
95-
set -x # print commands that are executed
96-
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub"
9797
- name: Generate coverage XML (Python 3.6)
9898
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
9999
run: |

scripts/populate_tox/config.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@
240240
"*": ["pytest-asyncio", "tiktoken"],
241241
"<1.55": ["httpx<0.28"],
242242
},
243-
"python": ">=3.8",
243+
"python": {
244+
">0.0,<2.3": ">=3.8",
245+
">=2.3": ">=3.9",
246+
},
244247
},
245248
"openai-notiktoken": {
246249
"package": "openai",
@@ -249,7 +252,10 @@
249252
"*": ["pytest-asyncio"],
250253
"<1.55": ["httpx<0.28"],
251254
},
252-
"python": ">=3.8",
255+
"python": {
256+
">0.0,<2.3": ">=3.8",
257+
">=2.3": ">=3.9",
258+
},
253259
},
254260
"openai_agents": {
255261
"package": "openai-agents",

0 commit comments

Comments
 (0)