Skip to content

Commit

Permalink
chore: Add py38 and p39 to CI (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
farleyb-amazon committed Apr 12, 2021
1 parent adb6c72 commit 3b78bc6
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- 3.6
- 3.7
- 3.8
- 3.9
- 3.x
architecture:
- x64
Expand Down
11 changes: 11 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,16 @@ batch:
- identifier: py38_awses_latest
buildspec: codebuild/py38/awses_latest.yml

- identifier: py39_integ
buildspec: codebuild/py39/integ.yml
- identifier: py39_examples
buildspec: codebuild/py39/examples.yml
- identifier: py39_awses_1_7_1
buildspec: codebuild/py39/awses_1.7.1.yml
- identifier: py39_awses_2_0_0
buildspec: codebuild/py39/awses_2.0.0.yml
- identifier: py39_awses_latest
buildspec: codebuild/py39/awses_latest.yml

- identifier: code_coverage
buildspec: codebuild/coverage/coverage.yml
23 changes: 23 additions & 0 deletions codebuild/py39/awses_1.7.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 0.2

env:
variables:
TOXENV: "py39-awses_1.7.1"
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb"
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2"

phases:
install:
runtime-versions:
python: latest
build:
commands:
- pyenv install 3.9.0
- pyenv local 3.9.0
- pip install tox tox-pyenv
- cd test_vector_handlers
- tox
23 changes: 23 additions & 0 deletions codebuild/py39/awses_2.0.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 0.2

env:
variables:
TOXENV: "py39-awses_2.0.0"
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb"
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2"

phases:
install:
runtime-versions:
python: latest
build:
commands:
- pyenv install 3.9.0
- pyenv local 3.9.0
- pip install tox tox-pyenv
- cd test_vector_handlers
- tox
23 changes: 23 additions & 0 deletions codebuild/py39/awses_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 0.2

env:
variables:
TOXENV: "py39-awses_latest"
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_API_DEPLOYMENT_ID: "xi1mwx3ttb"
AWS_ENCRYPTION_SDK_PYTHON_DECRYPT_ORACLE_REGION: "us-west-2"

phases:
install:
runtime-versions:
python: latest
build:
commands:
- pyenv install 3.9.0
- pyenv local 3.9.0
- pip install tox tox-pyenv
- cd test_vector_handlers
- tox
20 changes: 20 additions & 0 deletions codebuild/py39/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 0.2

env:
variables:
TOXENV: "py39-examples"
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
phases:
install:
runtime-versions:
python: latest
build:
commands:
- pyenv install 3.9.0
- pyenv local 3.9.0
- pip install tox tox-pyenv
- tox
20 changes: 20 additions & 0 deletions codebuild/py39/integ.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 0.2

env:
variables:
TOXENV: "py39-integ"
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
phases:
install:
runtime-versions:
python: latest
build:
commands:
- pyenv install 3.9.0
- pyenv local 3.9.0
- pip install tox tox-pyenv
- tox
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def get_requirements():
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Security",
"Topic :: Security :: Cryptography",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{27,34,35,36,37}-{local,integ,accept,examples}, nocmk,
py{27,34,35,36,37,38,39}-{local,integ,accept,examples}, nocmk,
bandit, doc8, readme, docs,
{flake8,pylint}{,-tests,-examples},
isort-check, black-check,
Expand Down

0 comments on commit 3b78bc6

Please sign in to comment.