@@ -3,32 +3,37 @@ name: "Integration Tests"
3
3
workflow_call : {}
4
4
5
5
jobs :
6
- db-data-serverless :
7
- name : db_data rest
6
+
7
+ inference :
8
+ name : Inference tests
8
9
runs-on : ubuntu-latest
9
- needs :
10
- - inference
11
10
strategy :
12
- fail-fast : false
13
11
matrix :
14
- python_version :
15
- - 3.9
16
- - 3.13
17
- use_grpc : [true, false]
12
+ python_version : [3.9, 3.12]
18
13
steps :
19
14
- uses : actions/checkout@v4
20
- - uses : ./.github/actions/test-data-plane
15
+ - name : ' Set up Python ${{ matrix.python_version }}'
16
+ uses : actions/setup-python@v5
21
17
with :
22
- python_version : ' ${{ matrix.python_version }}'
23
- use_grpc : ' ${{ matrix.use_grpc }}'
24
- metric : ' cosine'
25
- spec : ' { "serverless": { "region": "us-west-2", "cloud": "aws" }}'
18
+ python-version : ' ${{ matrix.python_version }}'
19
+ - name : Setup Poetry
20
+ uses : ./.github/actions/setup-poetry
21
+ with :
22
+ include_asyncio : true
23
+ - name : ' Run integration tests'
24
+ run : poetry run pytest tests/integration/inference -s -vv
25
+ env :
26
+ PINECONE_DEBUG_CURL : ' true'
26
27
PINECONE_API_KEY : ' ${{ secrets.PINECONE_API_KEY }}'
27
- freshness_timeout_seconds : 600
28
- skip_weird_id_tests : ' true'
29
28
30
- db-data-asyncio :
31
- name : db_data asyncio
29
+
30
+ dependency-test-asyncio :
31
+ uses : ' ./.github/workflows/testing-integration-asyncio.yaml'
32
+ secrets : inherit
33
+ needs : inference
34
+
35
+ db-data-serverless :
36
+ name : db_data rest
32
37
runs-on : ubuntu-latest
33
38
needs :
34
39
- inference
@@ -38,48 +43,51 @@ jobs:
38
43
python_version :
39
44
- 3.9
40
45
- 3.13
41
- use_grpc : [false, true ]
46
+ use_grpc : [true, false ]
42
47
steps :
43
48
- uses : actions/checkout@v4
44
- - uses : ./.github/actions/test-asyncio
49
+ - uses : ./.github/actions/test-data-plane
45
50
with :
46
51
python_version : ' ${{ matrix.python_version }}'
47
52
use_grpc : ' ${{ matrix.use_grpc }}'
53
+ metric : ' cosine'
48
54
spec : ' { "serverless": { "region": "us-west-2", "cloud": "aws" }}'
49
55
PINECONE_API_KEY : ' ${{ secrets.PINECONE_API_KEY }}'
50
56
freshness_timeout_seconds : 600
57
+ skip_weird_id_tests : ' true'
51
58
52
-
53
- db-control-rest-pod :
54
- name : db_control pod/collection tests
55
- runs-on : ubuntu-latest
56
- needs :
57
- - inference
58
- strategy :
59
- matrix :
60
- testConfig :
61
- - python-version : 3.9
62
- pod : { environment: 'us-east1-gcp'}
63
- - python-version : 3.13
64
- pod : { environment: 'us-east1-gcp'}
65
- fail-fast : false
66
- steps :
67
- - uses : actions/checkout@v4
68
- - name : ' Set up Python ${{ matrix.testConfig.python-version }}'
69
- uses : actions/setup-python@v5
70
- with :
71
- python-version : ' ${{ matrix.testConfig.python-version }}'
72
- - name : Setup Poetry
73
- uses : ./.github/actions/setup-poetry
74
- - name : ' Run integration tests (REST, prod)'
75
- run : poetry run pytest tests/integration/control/pod -s -v
76
- env :
77
- PINECONE_DEBUG_CURL : ' true'
78
- PINECONE_API_KEY : ' ${{ secrets.PINECONE_API_KEY }}'
79
- PINECONE_ENVIRONMENT : ' ${{ matrix.testConfig.pod.environment }}'
80
- GITHUB_BUILD_NUMBER : ' ${{ github.run_number }}-s-${{ matrix.testConfig.python-version}}'
81
- DIMENSION : 10
82
- METRIC : ' cosine'
59
+ # db-control-rest-pod:
60
+ # name: db_control pod/collection tests
61
+ # runs-on: ubuntu-latest
62
+ # needs:
63
+ # - inference
64
+ # strategy:
65
+ # matrix:
66
+ # testConfig:
67
+ # - python-version: 3.9
68
+ # pod: { environment: 'us-east1-gcp'}
69
+ # - python-version: 3.13
70
+ # pod: { environment: 'us-east1-gcp'}
71
+ # fail-fast: false
72
+ # steps:
73
+ # - uses: actions/checkout@v4
74
+ # - name: 'Set up Python ${{ matrix.testConfig.python-version }}'
75
+ # uses: actions/setup-python@v5
76
+ # with:
77
+ # python-version: '${{ matrix.testConfig.python-version }}'
78
+ # - name: Setup Poetry
79
+ # uses: ./.github/actions/setup-poetry
80
+ # with:
81
+ # include_asyncio: true
82
+ # - name: 'Run integration tests (REST)'
83
+ # run: poetry run pytest tests/integration/control/pod -s -v
84
+ # env:
85
+ # PINECONE_DEBUG_CURL: 'true'
86
+ # PINECONE_API_KEY: '${{ secrets.PINECONE_API_KEY }}'
87
+ # PINECONE_ENVIRONMENT: '${{ matrix.testConfig.pod.environment }}'
88
+ # GITHUB_BUILD_NUMBER: '${{ github.run_number }}-s-${{ matrix.testConfig.python-version}}'
89
+ # DIMENSION: 10
90
+ # METRIC: 'cosine'
83
91
84
92
db-control-rest-serverless :
85
93
name : db_control serverless
@@ -104,55 +112,10 @@ jobs:
104
112
python-version : ' ${{ matrix.testConfig.python-version }}'
105
113
- name : Setup Poetry
106
114
uses : ./.github/actions/setup-poetry
107
- - name : ' Run integration tests (REST, prod )'
115
+ - name : ' Run integration tests (REST)'
108
116
run : poetry run pytest tests/integration/control/serverless -s -vv
109
117
env :
110
118
PINECONE_DEBUG_CURL : ' true'
111
119
PINECONE_API_KEY : ' ${{ secrets.PINECONE_API_KEY }}'
112
120
SERVERLESS_CLOUD : ' ${{ matrix.testConfig.serverless.cloud }}'
113
121
SERVERLESS_REGION : ' ${{ matrix.testConfig.serverless.region }}'
114
-
115
- db-control-asyncio :
116
- name : db_control asyncio
117
- runs-on : ubuntu-latest
118
- needs :
119
- - inference
120
- strategy :
121
- matrix :
122
- python_version :
123
- - 3.9
124
- - 3.12
125
- fail-fast : false
126
- steps :
127
- - uses : actions/checkout@v4
128
- - name : ' Set up Python ${{ matrix.python_version }}'
129
- uses : actions/setup-python@v5
130
- with :
131
- python-version : ' ${{ matrix.python_version }}'
132
- - name : Setup Poetry
133
- uses : ./.github/actions/setup-poetry
134
- - name : ' Run integration tests (asyncio, prod)'
135
- run : poetry run pytest tests/integration/control_asyncio -s -vv
136
- env :
137
- PINECONE_DEBUG_CURL : ' true'
138
- PINECONE_API_KEY : ' ${{ secrets.PINECONE_API_KEY }}'
139
-
140
- inference :
141
- name : Inference tests
142
- runs-on : ubuntu-latest
143
- strategy :
144
- matrix :
145
- python_version : [3.9, 3.12]
146
- steps :
147
- - uses : actions/checkout@v4
148
- - name : ' Set up Python ${{ matrix.python_version }}'
149
- uses : actions/setup-python@v5
150
- with :
151
- python-version : ' ${{ matrix.python_version }}'
152
- - name : Setup Poetry
153
- uses : ./.github/actions/setup-poetry
154
- - name : ' Run integration tests'
155
- run : poetry run pytest tests/integration/inference -s -vv
156
- env :
157
- PINECONE_DEBUG_CURL : ' true'
158
- PINECONE_API_KEY : ' ${{ secrets.PINECONE_API_KEY }}'
0 commit comments