File tree Expand file tree Collapse file tree 17 files changed +66
-18
lines changed
test-dependency-asyncio-rest
tests/integration/control Expand file tree Collapse file tree 17 files changed +66
-18
lines changed Original file line number Diff line number Diff line change 9
9
description : ' Delete all indexes and collections'
10
10
required : false
11
11
default : ' false'
12
+ PINECONE_ADDITIONAL_HEADERS :
13
+ description : ' Additional headers to send with the request'
14
+ required : false
15
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
12
16
13
17
runs :
14
18
using : ' composite'
25
29
env :
26
30
PINECONE_API_KEY : ${{ inputs.PINECONE_API_KEY }}
27
31
DELETE_ALL : ${{ inputs.DELETE_ALL }}
32
+ PINECONE_ADDITIONAL_HEADERS : ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ inputs:
23
23
PINECONE_API_KEY :
24
24
description : ' The Pinecone API key'
25
25
required : true
26
+ PINECONE_ADDITIONAL_HEADERS :
27
+ description : ' Additional headers to send with the request'
28
+ required : false
29
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
26
30
27
31
runs :
28
32
using : ' composite'
@@ -36,14 +40,15 @@ runs:
36
40
shell : bash
37
41
run : |
38
42
pip install pinecone-client==${{ inputs.pinecone_client_version }}
39
-
43
+
40
44
- name : Create index
41
45
id : create-index
42
46
shell : bash
43
47
run : ./python3 scripts/create-index-legacy.py
44
48
env :
45
49
PINECONE_API_KEY : ${{ inputs.PINECONE_API_KEY }}
46
50
PINECONE_ENVIRONMENT : ${{ inputs.PINECONE_ENVIRONMENT }}
51
+ PINECONE_ADDITIONAL_HEADERS : ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
47
52
INDEX_NAME : ${{ inputs.index_name }}
48
53
DIMENSION : ${{ inputs.dimension }}
49
54
METRIC : ${{ inputs.metric }
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ inputs:
25
25
PINECONE_API_KEY :
26
26
description : ' The Pinecone API key'
27
27
required : true
28
+ PINECONE_ADDITIONAL_HEADERS :
29
+ description : ' Additional headers to send with the request'
30
+ required : false
31
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
32
+
28
33
29
34
outputs :
30
35
index_name :
48
53
run : poetry run python3 scripts/create.py
49
54
env :
50
55
PINECONE_API_KEY : ${{ inputs.PINECONE_API_KEY }}
56
+ PINECONE_ADDITIONAL_HEADERS : ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
51
57
NAME_PREFIX : ${{ inputs.name_prefix }}
52
58
REGION : ${{ inputs.region }}
53
59
CLOUD : ${{ inputs.cloud }}
Original file line number Diff line number Diff line change 8
8
PINECONE_API_KEY :
9
9
description : ' The Pinecone API key'
10
10
required : true
11
+ PINECONE_ADDITIONAL_HEADERS :
12
+ description : ' Additional headers to send with the request'
13
+ required : false
14
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
11
15
12
16
13
17
runs :
26
30
run : poetry run python3 scripts/delete.py
27
31
env :
28
32
PINECONE_API_KEY : ${{ inputs.PINECONE_API_KEY }}
29
- INDEX_NAME : ${{ inputs.index_name }}
33
+ PINECONE_ADDITIONAL_HEADERS : ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
34
+ INDEX_NAME : ${{ inputs.index_name }}
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ inputs:
15
15
PINECONE_API_KEY :
16
16
description : ' The Pinecone API key'
17
17
required : true
18
+ PINECONE_ADDITIONAL_HEADERS :
19
+ description : ' Additional headers to send with the request'
20
+ required : false
21
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
18
22
python_version :
19
23
description : ' The version of Python to use'
20
24
required : false
41
45
run : poetry run pytest tests/integration/data_asyncio --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
42
46
env :
43
47
PINECONE_API_KEY : ${{ inputs.PINECONE_API_KEY }}
48
+ PINECONE_ADDITIONAL_HEADERS : ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
44
49
USE_GRPC : ${{ inputs.use_grpc }}
45
50
SPEC : ${{ inputs.spec }}
46
51
FRESHNESS_TIMEOUT_SECONDS : ${{ inputs.freshness_timeout_seconds }}
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ inputs:
18
18
PINECONE_API_KEY :
19
19
description : ' The Pinecone API key'
20
20
required : true
21
+ PINECONE_ADDITIONAL_HEADERS :
22
+ description : ' Additional headers to send with the request'
23
+ required : false
24
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
21
25
python_version :
22
26
description : ' The version of Python to use'
23
27
required : false
55
59
run : poetry run pytest tests/integration/data --retries 5 --retry-delay 35 -s -vv --log-cli-level=DEBUG
56
60
env :
57
61
PINECONE_API_KEY : ${{ inputs.PINECONE_API_KEY }}
62
+ PINECONE_ADDITIONAL_HEADERS : ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
58
63
USE_GRPC : ${{ inputs.use_grpc }}
59
64
METRIC : ${{ inputs.metric }}
60
65
SPEC : ${{ inputs.spec }}
Original file line number Diff line number Diff line change 5
5
PINECONE_API_KEY :
6
6
description : ' The Pinecone API key'
7
7
required : true
8
+ PINECONE_ADDITIONAL_HEADERS :
9
+ description : ' Additional headers to send with the request'
10
+ required : false
11
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
8
12
index_name :
9
13
description : ' The name of the index'
10
14
required : true
43
47
command : poetry run pytest tests/dependency/asyncio-rest -s -v
44
48
env :
45
49
PINECONE_API_KEY : ' ${{ inputs.PINECONE_API_KEY }}'
50
+ PINECONE_ADDITIONAL_HEADERS : ' ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}'
46
51
INDEX_NAME : ' ${{ inputs.index_name }}'
Original file line number Diff line number Diff line change 5
5
PINECONE_API_KEY :
6
6
description : ' The Pinecone API key'
7
7
required : true
8
+ PINECONE_ADDITIONAL_HEADERS :
9
+ description : ' Additional headers to send with the request'
10
+ required : false
11
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
8
12
index_name :
9
13
description : ' The name of the index'
10
14
required : true
63
67
command : poetry run pytest tests/dependency/grpc -s -v
64
68
env :
65
69
PINECONE_API_KEY : ${{ inputs.PINECONE_API_KEY }}
70
+ PINECONE_ADDITIONAL_HEADERS : ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}
66
71
INDEX_NAME : ${{ inputs.index_name }}
Original file line number Diff line number Diff line change 5
5
PINECONE_API_KEY :
6
6
description : ' The Pinecone API key'
7
7
required : true
8
+ PINECONE_ADDITIONAL_HEADERS :
9
+ description : ' Additional headers to send with the request'
10
+ required : false
11
+ default : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
8
12
index_name :
9
13
description : ' The name of the index'
10
14
required : true
42
46
command : poetry run pytest tests/dependency/rest -s -v
43
47
env :
44
48
PINECONE_API_KEY : ' ${{ inputs.PINECONE_API_KEY }}'
49
+ PINECONE_ADDITIONAL_HEADERS : ' ${{ inputs.PINECONE_ADDITIONAL_HEADERS }}'
45
50
INDEX_NAME : ' ${{ inputs.index_name }}'
Original file line number Diff line number Diff line change 27
27
python_version : ' ${{ matrix.python_version }}'
28
28
index_name : ' ${{ inputs.index_name }}'
29
29
PINECONE_API_KEY : ' ${{ secrets.PINECONE_API_KEY }}'
30
+ PINECONE_ADDITIONAL_HEADERS : ' {"sdk-test-suite": "pinecone-python-client", "x-environment": "preprod-aws-0"}'
30
31
aiohttp_version : ' ${{ matrix.aiohttp_version }}'
You can’t perform that action at this time.
0 commit comments