Skip to content

Commit 39d98fb

Browse files
authored
ci(py310): test against python3.10.0 (#371)
1 parent 26bf68a commit 39d98fb

File tree

6 files changed

+86
-3
lines changed

6 files changed

+86
-3
lines changed

buildspec.yml

+8
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ batch:
3737
buildspec: codebuild/py39/examples.yml
3838
- identifier: py39_awses_latest
3939

40+
- identifier: py310_integ
41+
buildspec: codebuild/py310/integ.yml
42+
- identifier: py310_examples
43+
buildspec: codebuild/py310/examples.yml
44+
- identifier: py310_awses_latest
45+
buildspec: codebuild/py310/awses_local.yml
46+
47+
4048
- identifier: code_coverage
4149
buildspec: codebuild/coverage/coverage.yml
4250

codebuild/py310/awses_local.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py310-awses_local"
6+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
7+
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
8+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
9+
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
10+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb"
15+
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2"
16+
17+
phases:
18+
install:
19+
runtime-versions:
20+
python: latest
21+
build:
22+
commands:
23+
- pyenv install 3.10.0
24+
- pyenv local 3.10.0
25+
- pip install tox tox-pyenv
26+
- cd test_vector_handlers
27+
- tox

codebuild/py310/examples.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py310-examples"
6+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
7+
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
8+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
9+
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
10+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
15+
phases:
16+
install:
17+
runtime-versions:
18+
python: latest
19+
build:
20+
commands:
21+
- pyenv install 3.10.0
22+
- pyenv local 3.10.0
23+
- pip install tox tox-pyenv
24+
- tox

codebuild/py310/integ.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
TOXENV: "py310-integ"
6+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
7+
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
8+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
9+
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
10+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
11+
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
12+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
13+
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
14+
15+
phases:
16+
install:
17+
runtime-versions:
18+
python: latest
19+
build:
20+
commands:
21+
- pyenv install 3.10.0
22+
- pyenv local 3.10.0
23+
- pip install tox tox-pyenv
24+
- tox

test_vector_handlers/tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist =
33
# The test vectors depend on new features now,
44
# so until release we can only effectively test the local version of the ESDK.
5-
py{35,36,37,38,39}-awses_local,
5+
py{35,36,37,38,39,310}-awses_local,
66
# 1.2.0 and 1.2.max are being difficult because of attrs
77
bandit, doc8, readme, docs,
88
{flake8,pylint}{,-tests},

tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{35,36,37,38,39}-{local,integ,accept,examples}, nocmk,
3+
py{35,36,37,38,39,310}-{local,integ,accept,examples}, nocmk,
44
bandit, doc8, readme, docs,
55
{flake8,pylint}{,-tests,-examples},
66
isort-check, black-check,
@@ -318,7 +318,7 @@ commands =
318318

319319
# Release tooling
320320
[testenv:park]
321-
basepython = python3.6
321+
basepython = python3.7
322322
skip_install = true
323323
deps =
324324
pypi-parker

0 commit comments

Comments
 (0)