File tree Expand file tree Collapse file tree 4 files changed +40
-23
lines changed Expand file tree Collapse file tree 4 files changed +40
-23
lines changed Original file line number Diff line number Diff line change 34
34
unit-tests :
35
35
uses : ' ./.github/workflows/testing-unit.yaml'
36
36
secrets : inherit
37
+ with :
38
+ python_versions_json : ' ["3.9", "3.13"]'
37
39
38
40
create-project :
39
41
uses : ' ./.github/workflows/project-setup.yaml'
49
51
- create-project
50
52
with :
51
53
encrypted_project_api_key : ${{ needs.create-project.outputs.encrypted_project_api_key }}
52
-
54
+ python_versions_json : ' ["3.9", "3.13"] '
53
55
dependency-tests :
54
56
uses : ' ./.github/workflows/testing-dependency.yaml'
55
57
secrets : inherit
Original file line number Diff line number Diff line change 31
31
unit-tests :
32
32
uses : ' ./.github/workflows/testing-unit.yaml'
33
33
secrets : inherit
34
+ with :
35
+ python_versions_json : ' ["3.9"]'
34
36
35
37
create-project :
36
38
uses : ' ./.github/workflows/project-setup.yaml'
46
48
- create-project
47
49
with :
48
50
encrypted_project_api_key : ${{ needs.create-project.outputs.encrypted_project_api_key }}
51
+ python_versions_json : ' ["3.9"]'
49
52
50
53
cleanup-project :
51
54
if : ${{ always() }}
Original file line number Diff line number Diff line change 5
5
encrypted_project_api_key :
6
6
required : true
7
7
type : string
8
+ python_versions_json :
9
+ required : true
10
+ type : string
8
11
9
12
permissions : {}
10
13
11
14
jobs :
12
15
rest-sync :
13
- name : rest ${{ matrix.test_suite }}
16
+ name : rest ${{ matrix.python_version }} ${{ matrix. test_suite }}
14
17
runs-on : ubuntu-latest
15
18
strategy :
16
19
fail-fast : false
17
20
max-parallel : 4
18
21
matrix :
19
- python_version :
20
- - 3.9
22
+ python_version : ${{ fromJson(inputs.python_versions_json) }}
21
23
test_suite :
22
24
- control/serverless
23
25
- control/resources/index
@@ -43,14 +45,13 @@ jobs:
43
45
44
46
45
47
rest-asyncio :
46
- name : asyncio ${{ matrix.test_suite }}
48
+ name : asyncio ${{ matrix.python_version }} ${{ matrix. test_suite }}
47
49
runs-on : ubuntu-latest
48
50
strategy :
49
51
fail-fast : false
50
52
max-parallel : 4
51
53
matrix :
52
- python_version :
53
- - 3.9
54
+ python_version : ${{ fromJson(inputs.python_versions_json) }}
54
55
test_suite :
55
56
- control_asyncio/resources/index
56
57
# - control_asyncio/resources/backup
78
79
strategy :
79
80
fail-fast : false
80
81
matrix :
81
- python_version :
82
- - 3.9
83
- - 3.13
82
+ python_version : ${{ fromJson(inputs.python_versions_json) }}
84
83
test_suite :
85
84
- data
86
85
steps :
Original file line number Diff line number Diff line change 1
1
name : " Unit Tests"
2
2
' on ' :
3
- workflow_call : {}
3
+ workflow_call :
4
+ inputs :
5
+ python_versions_json :
6
+ required : true
7
+ type : string
4
8
5
9
jobs :
6
10
type-checking :
9
13
strategy :
10
14
fail-fast : true
11
15
matrix :
12
- python-version :
13
- - 3.9
14
- - 3.13
16
+ python-version : ${{ fromJson(inputs.python_versions_json) }}
15
17
use_grpc :
16
18
- true
17
19
- false
@@ -28,28 +30,39 @@ jobs:
28
30
run : poetry run mypy pinecone
29
31
30
32
unit-tests :
31
- name : Unit tests
33
+ name : Unit (${{ matrix.python-version }})
32
34
runs-on : ubuntu-latest
33
35
strategy :
34
36
fail-fast : true
35
37
matrix :
36
- python-version :
37
- - 3.9
38
- - 3.13
39
- use_grpc :
40
- - true
41
- - false
38
+ python-version : ${{ fromJson(inputs.python_versions_json) }}
42
39
steps :
43
40
- uses : actions/checkout@v4
44
41
- name : Setup Poetry
45
42
uses : ./.github/actions/setup-poetry
46
43
with :
47
- include_grpc : ' ${{ matrix.use_grpc }} '
44
+ include_grpc : false
48
45
include_types : false
49
46
include_asyncio : true
50
47
python_version : ' ${{ matrix.python-version }}'
51
48
- name : Run unit tests (REST)
52
49
run : poetry run pytest --cov=pinecone --timeout=120 tests/unit --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
50
+
51
+ grpc-unit-tests :
52
+ name : Unit grpc (${{ matrix.python-version }})
53
+ runs-on : ubuntu-latest
54
+ strategy :
55
+ fail-fast : true
56
+ matrix :
57
+ python-version : ${{ fromJson(inputs.python_versions_json) }}
58
+ steps :
59
+ - uses : actions/checkout@v4
60
+ - name : Setup Poetry
61
+ uses : ./.github/actions/setup-poetry
62
+ with :
63
+ include_grpc : true
64
+ include_types : false
65
+ include_asyncio : true
66
+ python_version : ' ${{ matrix.python-version }}'
53
67
- name : Run unit tests (GRPC)
54
- if : ${{ matrix.use_grpc == true }}
55
68
run : poetry run pytest --cov=pinecone/grpc --timeout=120 tests/unit_grpc --retries 2 --retry-delay 35 -s -vv --log-cli-level=DEBUG
You can’t perform that action at this time.
0 commit comments