Skip to content

Commit 99bbb77

Browse files
ci: Run test steps in parallel (#8313)
Run independent steps in parallel.
1 parent 95de412 commit 99bbb77

17 files changed

Lines changed: 319 additions & 302 deletions

‎.github/workflows/test-integrations-agents.yml‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ jobs:
3737
- name: Setup Test Env
3838
run: |
3939
uv sync
40-
- name: Test openai_agents
41-
run: |
42-
set -x # print commands that are executed
43-
./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents"
44-
- name: Test pydantic_ai
45-
run: |
46-
set -x # print commands that are executed
47-
./scripts/runtox.sh "py${{ matrix.python-version }}-pydantic_ai"
40+
- parallel:
41+
- name: Test openai_agents
42+
run: |
43+
set -x # print commands that are executed
44+
./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents"
45+
- name: Test pydantic_ai
46+
run: |
47+
set -x # print commands that are executed
48+
./scripts/runtox.sh "py${{ matrix.python-version }}-pydantic_ai"
4849
- name: Upload coverage data
4950
if: ${{ !cancelled() }}
5051
continue-on-error: true

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,19 @@ jobs:
3737
- name: Setup Test Env
3838
run: |
3939
uv sync
40-
- name: Test langchain-base
41-
run: |
42-
set -x # print commands that are executed
43-
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-base"
44-
- name: Test langchain-notiktoken
45-
run: |
46-
set -x # print commands that are executed
47-
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-notiktoken"
48-
- name: Test langgraph
49-
run: |
50-
set -x # print commands that are executed
51-
./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph"
40+
- parallel:
41+
- name: Test langchain-base
42+
run: |
43+
set -x # print commands that are executed
44+
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-base"
45+
- name: Test langchain-notiktoken
46+
run: |
47+
set -x # print commands that are executed
48+
./scripts/runtox.sh "py${{ matrix.python-version }}-langchain-notiktoken"
49+
- name: Test langgraph
50+
run: |
51+
set -x # print commands that are executed
52+
./scripts/runtox.sh "py${{ matrix.python-version }}-langgraph"
5253
- name: Upload coverage data
5354
if: ${{ !cancelled() }}
5455
continue-on-error: true

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

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -37,42 +37,43 @@ jobs:
3737
- name: Setup Test Env
3838
run: |
3939
uv sync
40-
- name: Test anthropic
41-
run: |
42-
set -x # print commands that are executed
43-
./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic"
44-
- name: Test cohere
45-
run: |
46-
set -x # print commands that are executed
47-
./scripts/runtox.sh "py${{ matrix.python-version }}-cohere"
48-
- name: Test google_genai
49-
run: |
50-
set -x # print commands that are executed
51-
./scripts/runtox.sh "py${{ matrix.python-version }}-google_genai"
52-
- name: Test huggingface_hub
53-
run: |
54-
set -x # print commands that are executed
55-
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub"
56-
- name: Test litellm
57-
run: |
58-
set -x # print commands that are executed
59-
./scripts/runtox.sh "py${{ matrix.python-version }}-litellm"
60-
- name: Test mistral
61-
run: |
62-
set -x # print commands that are executed
63-
./scripts/runtox.sh "py${{ matrix.python-version }}-mistral"
64-
- name: Test openai-base
65-
run: |
66-
set -x # print commands that are executed
67-
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-base"
68-
- name: Test openai-notiktoken
69-
run: |
70-
set -x # print commands that are executed
71-
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken"
72-
- name: Test typesafe
73-
run: |
74-
set -x # print commands that are executed
75-
./scripts/runtox.sh "py${{ matrix.python-version }}-typesafe"
40+
- parallel:
41+
- name: Test anthropic
42+
run: |
43+
set -x # print commands that are executed
44+
./scripts/runtox.sh "py${{ matrix.python-version }}-anthropic"
45+
- name: Test cohere
46+
run: |
47+
set -x # print commands that are executed
48+
./scripts/runtox.sh "py${{ matrix.python-version }}-cohere"
49+
- name: Test google_genai
50+
run: |
51+
set -x # print commands that are executed
52+
./scripts/runtox.sh "py${{ matrix.python-version }}-google_genai"
53+
- name: Test huggingface_hub
54+
run: |
55+
set -x # print commands that are executed
56+
./scripts/runtox.sh "py${{ matrix.python-version }}-huggingface_hub"
57+
- name: Test litellm
58+
run: |
59+
set -x # print commands that are executed
60+
./scripts/runtox.sh "py${{ matrix.python-version }}-litellm"
61+
- name: Test mistral
62+
run: |
63+
set -x # print commands that are executed
64+
./scripts/runtox.sh "py${{ matrix.python-version }}-mistral"
65+
- name: Test openai-base
66+
run: |
67+
set -x # print commands that are executed
68+
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-base"
69+
- name: Test openai-notiktoken
70+
run: |
71+
set -x # print commands that are executed
72+
./scripts/runtox.sh "py${{ matrix.python-version }}-openai-notiktoken"
73+
- name: Test typesafe
74+
run: |
75+
set -x # print commands that are executed
76+
./scripts/runtox.sh "py${{ matrix.python-version }}-typesafe"
7677
- name: Upload coverage data
7778
if: ${{ !cancelled() }}
7879
continue-on-error: true

‎.github/workflows/test-integrations-cloud.yml‎

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,26 +41,27 @@ jobs:
4141
- name: Setup Test Env
4242
run: |
4343
uv sync
44-
- name: Test aws_lambda
45-
run: |
46-
set -x # print commands that are executed
47-
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda"
48-
- name: Test boto3
49-
run: |
50-
set -x # print commands that are executed
51-
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3"
52-
- name: Test chalice
53-
run: |
54-
set -x # print commands that are executed
55-
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice"
56-
- name: Test cloud_resource_context
57-
run: |
58-
set -x # print commands that are executed
59-
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context"
60-
- name: Test gcp
61-
run: |
62-
set -x # print commands that are executed
63-
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp"
44+
- parallel:
45+
- name: Test aws_lambda
46+
run: |
47+
set -x # print commands that are executed
48+
./scripts/runtox.sh "py${{ matrix.python-version }}-aws_lambda"
49+
- name: Test boto3
50+
run: |
51+
set -x # print commands that are executed
52+
./scripts/runtox.sh "py${{ matrix.python-version }}-boto3"
53+
- name: Test chalice
54+
run: |
55+
set -x # print commands that are executed
56+
./scripts/runtox.sh "py${{ matrix.python-version }}-chalice"
57+
- name: Test cloud_resource_context
58+
run: |
59+
set -x # print commands that are executed
60+
./scripts/runtox.sh "py${{ matrix.python-version }}-cloud_resource_context"
61+
- name: Test gcp
62+
run: |
63+
set -x # print commands that are executed
64+
./scripts/runtox.sh "py${{ matrix.python-version }}-gcp"
6465
- name: Upload coverage data
6566
if: ${{ !cancelled() }}
6667
continue-on-error: true

‎.github/workflows/test-integrations-common.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ jobs:
3737
- name: Setup Test Env
3838
run: |
3939
uv sync
40-
- name: Test common
41-
run: |
42-
set -x # print commands that are executed
43-
./scripts/runtox.sh "py${{ matrix.python-version }}-common"
40+
- parallel:
41+
- name: Test common
42+
run: |
43+
set -x # print commands that are executed
44+
./scripts/runtox.sh "py${{ matrix.python-version }}-common"
4445
- name: Upload coverage data
4546
if: ${{ !cancelled() }}
4647
continue-on-error: true

‎.github/workflows/test-integrations-dbs.yml‎

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,34 +69,35 @@ jobs:
6969
- name: Setup Test Env
7070
run: |
7171
uv sync
72-
- name: Test aiomysql
73-
run: |
74-
set -x # print commands that are executed
75-
./scripts/runtox.sh "py${{ matrix.python-version }}-aiomysql"
76-
- name: Test asyncpg
77-
run: |
78-
set -x # print commands that are executed
79-
./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg"
80-
- name: Test clickhouse_driver
81-
run: |
82-
set -x # print commands that are executed
83-
./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver"
84-
- name: Test pymongo
85-
run: |
86-
set -x # print commands that are executed
87-
./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo"
88-
- name: Test redis
89-
run: |
90-
set -x # print commands that are executed
91-
./scripts/runtox.sh "py${{ matrix.python-version }}-redis"
92-
- name: Test redis_py_cluster_legacy
93-
run: |
94-
set -x # print commands that are executed
95-
./scripts/runtox.sh "py${{ matrix.python-version }}-redis_py_cluster_legacy"
96-
- name: Test sqlalchemy
97-
run: |
98-
set -x # print commands that are executed
99-
./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy"
72+
- parallel:
73+
- name: Test aiomysql
74+
run: |
75+
set -x # print commands that are executed
76+
./scripts/runtox.sh "py${{ matrix.python-version }}-aiomysql"
77+
- name: Test asyncpg
78+
run: |
79+
set -x # print commands that are executed
80+
./scripts/runtox.sh "py${{ matrix.python-version }}-asyncpg"
81+
- name: Test clickhouse_driver
82+
run: |
83+
set -x # print commands that are executed
84+
./scripts/runtox.sh "py${{ matrix.python-version }}-clickhouse_driver"
85+
- name: Test pymongo
86+
run: |
87+
set -x # print commands that are executed
88+
./scripts/runtox.sh "py${{ matrix.python-version }}-pymongo"
89+
- name: Test redis
90+
run: |
91+
set -x # print commands that are executed
92+
./scripts/runtox.sh "py${{ matrix.python-version }}-redis"
93+
- name: Test redis_py_cluster_legacy
94+
run: |
95+
set -x # print commands that are executed
96+
./scripts/runtox.sh "py${{ matrix.python-version }}-redis_py_cluster_legacy"
97+
- name: Test sqlalchemy
98+
run: |
99+
set -x # print commands that are executed
100+
./scripts/runtox.sh "py${{ matrix.python-version }}-sqlalchemy"
100101
- name: Upload coverage data
101102
if: ${{ !cancelled() }}
102103
continue-on-error: true

‎.github/workflows/test-integrations-flags.yml‎

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,23 @@ jobs:
3737
- name: Setup Test Env
3838
run: |
3939
uv sync
40-
- name: Test launchdarkly
41-
run: |
42-
set -x # print commands that are executed
43-
./scripts/runtox.sh "py${{ matrix.python-version }}-launchdarkly"
44-
- name: Test openfeature
45-
run: |
46-
set -x # print commands that are executed
47-
./scripts/runtox.sh "py${{ matrix.python-version }}-openfeature"
48-
- name: Test statsig
49-
run: |
50-
set -x # print commands that are executed
51-
./scripts/runtox.sh "py${{ matrix.python-version }}-statsig"
52-
- name: Test unleash
53-
run: |
54-
set -x # print commands that are executed
55-
./scripts/runtox.sh "py${{ matrix.python-version }}-unleash"
40+
- parallel:
41+
- name: Test launchdarkly
42+
run: |
43+
set -x # print commands that are executed
44+
./scripts/runtox.sh "py${{ matrix.python-version }}-launchdarkly"
45+
- name: Test openfeature
46+
run: |
47+
set -x # print commands that are executed
48+
./scripts/runtox.sh "py${{ matrix.python-version }}-openfeature"
49+
- name: Test statsig
50+
run: |
51+
set -x # print commands that are executed
52+
./scripts/runtox.sh "py${{ matrix.python-version }}-statsig"
53+
- name: Test unleash
54+
run: |
55+
set -x # print commands that are executed
56+
./scripts/runtox.sh "py${{ matrix.python-version }}-unleash"
5657
- name: Upload coverage data
5758
if: ${{ !cancelled() }}
5859
continue-on-error: true

‎.github/workflows/test-integrations-gevent.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ jobs:
3737
- name: Setup Test Env
3838
run: |
3939
uv sync
40-
- name: Test gevent
41-
run: |
42-
set -x # print commands that are executed
43-
./scripts/runtox.sh "py${{ matrix.python-version }}-gevent"
40+
- parallel:
41+
- name: Test gevent
42+
run: |
43+
set -x # print commands that are executed
44+
./scripts/runtox.sh "py${{ matrix.python-version }}-gevent"
4445
- name: Upload coverage data
4546
if: ${{ !cancelled() }}
4647
continue-on-error: true

‎.github/workflows/test-integrations-graphql.yml‎

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,23 @@ jobs:
3737
- name: Setup Test Env
3838
run: |
3939
uv sync
40-
- name: Test ariadne
41-
run: |
42-
set -x # print commands that are executed
43-
./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne"
44-
- name: Test gql
45-
run: |
46-
set -x # print commands that are executed
47-
./scripts/runtox.sh "py${{ matrix.python-version }}-gql"
48-
- name: Test graphene
49-
run: |
50-
set -x # print commands that are executed
51-
./scripts/runtox.sh "py${{ matrix.python-version }}-graphene"
52-
- name: Test strawberry
53-
run: |
54-
set -x # print commands that are executed
55-
./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry"
40+
- parallel:
41+
- name: Test ariadne
42+
run: |
43+
set -x # print commands that are executed
44+
./scripts/runtox.sh "py${{ matrix.python-version }}-ariadne"
45+
- name: Test gql
46+
run: |
47+
set -x # print commands that are executed
48+
./scripts/runtox.sh "py${{ matrix.python-version }}-gql"
49+
- name: Test graphene
50+
run: |
51+
set -x # print commands that are executed
52+
./scripts/runtox.sh "py${{ matrix.python-version }}-graphene"
53+
- name: Test strawberry
54+
run: |
55+
set -x # print commands that are executed
56+
./scripts/runtox.sh "py${{ matrix.python-version }}-strawberry"
5657
- name: Upload coverage data
5758
if: ${{ !cancelled() }}
5859
continue-on-error: true

‎.github/workflows/test-integrations-mcp.yml‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ jobs:
3737
- name: Setup Test Env
3838
run: |
3939
uv sync
40-
- name: Test mcp
41-
run: |
42-
set -x # print commands that are executed
43-
./scripts/runtox.sh "py${{ matrix.python-version }}-mcp"
44-
- name: Test fastmcp
45-
run: |
46-
set -x # print commands that are executed
47-
./scripts/runtox.sh "py${{ matrix.python-version }}-fastmcp"
40+
- parallel:
41+
- name: Test mcp
42+
run: |
43+
set -x # print commands that are executed
44+
./scripts/runtox.sh "py${{ matrix.python-version }}-mcp"
45+
- name: Test fastmcp
46+
run: |
47+
set -x # print commands that are executed
48+
./scripts/runtox.sh "py${{ matrix.python-version }}-fastmcp"
4849
- name: Upload coverage data
4950
if: ${{ !cancelled() }}
5051
continue-on-error: true

0 commit comments

Comments
 (0)