Skip to content

Commit e2b2337

Browse files
authored
Only run openai e2e tests on one matrix entry (#943)
* Only run openai e2e tests on one matrix entry * Remove -k
1 parent 9d40e86 commit e2b2337

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
python: "3.13"
2929
docsTarget: true
3030
cloudTestTarget: true
31+
openaiTestTarget: true
3132
clippyLinter: true
3233
- os: ubuntu-latest
3334
python: "3.9"
@@ -75,8 +76,6 @@ jobs:
7576
- run: mkdir junit-xml
7677
- run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml
7778
timeout-minutes: 10
78-
env:
79-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
8079
# Time skipping doesn't yet support ARM
8180
- if: ${{ !endsWith(matrix.os, '-arm') }}
8281
run: poe test ${{matrix.pytestExtraArgs}} -s --workflow-environment time-skipping --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--time-skipping.xml
@@ -89,6 +88,11 @@ jobs:
8988
TEMPORAL_CLIENT_CLOUD_API_KEY: ${{ secrets.TEMPORAL_CLIENT_CLOUD_API_KEY }}
9089
TEMPORAL_CLIENT_CLOUD_API_VERSION: 2024-05-13-00
9190
TEMPORAL_CLIENT_CLOUD_NAMESPACE: sdk-ci.a2dd6
91+
- if: ${{ matrix.openaiTestTarget && (github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-python') }}
92+
run: poe test tests/contrib/openai_agents/test_openai.py ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--openai.xml
93+
timeout-minutes: 10
94+
env:
95+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
9296
- name: "Upload junit-xml artifacts"
9397
uses: actions/upload-artifact@v4
9498
if: always()

0 commit comments

Comments
 (0)