Skip to content

Commit 5c7026c

Browse files
committed
Fix CI
1 parent 659d68b commit 5c7026c

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

.github/workflows/test-integrations-data-processing.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
python-version: ["3.5","3.7","3.8","3.11","3.12"]
28+
python-version: ["3.5","3.7","3.8","3.9","3.11","3.12"]
2929
# python3.6 reached EOL and is no longer being supported on
3030
# new versions of hosted runners on Github Actions
3131
# ubuntu-20.04 is the last version that supported python3.6
@@ -58,6 +58,10 @@ jobs:
5858
run: |
5959
set -x # print commands that are executed
6060
./scripts/runtox.sh "py${{ matrix.python-version }}-huey-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
61+
- name: Test openai latest
62+
run: |
63+
set -x # print commands that are executed
64+
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-latest" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
6165
- name: Test rq latest
6266
run: |
6367
set -x # print commands that are executed
@@ -110,6 +114,10 @@ jobs:
110114
run: |
111115
set -x # print commands that are executed
112116
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
117+
- name: Test openai pinned
118+
run: |
119+
set -x # print commands that are executed
120+
./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-openai" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
113121
- name: Test rq pinned
114122
run: |
115123
set -x # print commands that are executed
@@ -151,6 +159,10 @@ jobs:
151159
run: |
152160
set -x # print commands that are executed
153161
./scripts/runtox.sh --exclude-latest "py2.7-huey" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
162+
- name: Test openai py27
163+
run: |
164+
set -x # print commands that are executed
165+
./scripts/runtox.sh --exclude-latest "py2.7-openai" --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
154166
- name: Test rq py27
155167
run: |
156168
set -x # print commands that are executed

mypy.ini

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ ignore_missing_imports = True
6767
ignore_missing_imports = True
6868
[mypy-huey.*]
6969
ignore_missing_imports = True
70+
[mypy-openai.*]
71+
ignore_missing_imports = True
7072
[mypy-arq.*]
7173
ignore_missing_imports = True
7274
[mypy-grpc.*]

scripts/split-tox-gh-actions/split-tox-gh-actions.py

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"beam",
7171
"celery",
7272
"huey",
73+
"openai",
7374
"rq",
7475
],
7576
"Databases": [

tests/integrations/openai/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import pytest
2+
3+
pytest.importorskip("openai")

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ envlist =
147147
{py3.5,py3.11,py3.12}-loguru-latest
148148

149149
# OpenAI
150-
{py3.7,py3.9,py3.11,py3.12}-openai
150+
{py3.5,py3.7,py3.9,py3.11,py3.12}-openai-latest
151151

152152
# OpenTelemetry (OTel)
153153
{py3.7,py3.9,py3.11,py3.12}-opentelemetry

0 commit comments

Comments
 (0)