Skip to content

Commit

Permalink
feat: test Python 3.12 in CI (aws#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
texastony authored Oct 31, 2023
1 parent 3ba8019 commit 93a67d8
Show file tree
Hide file tree
Showing 27 changed files with 237 additions and 65 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci_test-vector-handler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- windows-latest
- macos-latest
python:
- 3.7
- 3.8
- 3.x
architecture:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ jobs:
- 3.9
- "3.10"
- "3.11"
- 3.x # Ideally, we would skip if 3.x is 3.11
- "3.12"
- 3.x
architecture:
- x64
- x86
Expand Down
49 changes: 49 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,81 @@ batch:
build-list:
- identifier: py37_integ
buildspec: codebuild/py37/integ.yml
env:
image: aws/codebuild/standard:5.0
- identifier: py37_examples
buildspec: codebuild/py37/examples.yml
env:
image: aws/codebuild/standard:5.0
- identifier: py37_awses_local
buildspec: codebuild/py37/awses_local.yml
env:
image: aws/codebuild/standard:5.0

- identifier: py38_integ
buildspec: codebuild/py38/integ.yml
env:
image: aws/codebuild/standard:5.0
- identifier: py38_examples
buildspec: codebuild/py38/examples.yml
env:
image: aws/codebuild/standard:5.0
- identifier: py38_awses_local
buildspec: codebuild/py38/awses_local.yml
env:
image: aws/codebuild/standard:5.0

- identifier: py39_integ
buildspec: codebuild/py39/integ.yml
env:
image: aws/codebuild/standard:5.0
- identifier: py39_examples
buildspec: codebuild/py39/examples.yml
env:
image: aws/codebuild/standard:5.0
- identifier: py39_awses_latest
env:
image: aws/codebuild/standard:5.0

- identifier: py310_integ
buildspec: codebuild/py310/integ.yml
env:
image: aws/codebuild/standard:6.0
- identifier: py310_examples
buildspec: codebuild/py310/examples.yml
env:
image: aws/codebuild/standard:6.0
- identifier: py310_awses_latest
buildspec: codebuild/py310/awses_local.yml
env:
image: aws/codebuild/standard:6.0

- identifier: py311_integ
buildspec: codebuild/py311/integ.yml
env:
image: aws/codebuild/standard:7.0
- identifier: py311_examples
buildspec: codebuild/py311/examples.yml
env:
image: aws/codebuild/standard:7.0
- identifier: py311_awses_latest
buildspec: codebuild/py311/awses_local.yml
env:
image: aws/codebuild/standard:7.0

- identifier: py312_integ
buildspec: codebuild/py312/integ.yml
env:
image: aws/codebuild/standard:7.0
- identifier: py312_examples
buildspec: codebuild/py312/examples.yml
env:
image: aws/codebuild/standard:7.0
- identifier: py312_awses_latest
buildspec: codebuild/py312/awses_local.yml
env:
image: aws/codebuild/standard:7.0

- identifier: code_coverage
buildspec: codebuild/coverage/coverage.yml

Expand Down
4 changes: 1 addition & 3 deletions codebuild/py310/awses_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.10
build:
commands:
- pyenv install 3.10.0
- pyenv local 3.10.0
- pip install "tox < 4.0"
- cd test_vector_handlers
- tox
4 changes: 1 addition & 3 deletions codebuild/py310/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.10
build:
commands:
- pyenv install 3.10.0
- pyenv local 3.10.0
- pip install "tox < 4.0"
- tox
4 changes: 1 addition & 3 deletions codebuild/py310/integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.10
build:
commands:
- pyenv install 3.10.0
- pyenv local 3.10.0
- pip install "tox < 4.0"
- tox
25 changes: 25 additions & 0 deletions codebuild/py311/awses_local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 0.2

env:
variables:
TOXENV: "py311-awses_local"
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_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
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: 3.11
build:
commands:
- pip install "tox < 4.0"
- cd test_vector_handlers
- tox
22 changes: 22 additions & 0 deletions codebuild/py311/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 0.2

env:
variables:
TOXENV: "py311-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
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
phases:
install:
runtime-versions:
python: 3.11
build:
commands:
- pip install "tox < 4.0"
- tox
22 changes: 22 additions & 0 deletions codebuild/py311/integ.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 0.2

env:
variables:
TOXENV: "py311-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
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
phases:
install:
runtime-versions:
python: 3.11
build:
commands:
- pip install "tox < 4.0"
- tox
30 changes: 30 additions & 0 deletions codebuild/py312/awses_local.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 0.2

env:
variables:
TOXENV: "py312-awses_local"
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_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
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:
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
- pyenv install 3.12.0
- pyenv local 3.12.0
- pip install --upgrade pip
- pip install setuptools
- pip install "tox < 4.0"
- cd test_vector_handlers
- tox
27 changes: 27 additions & 0 deletions codebuild/py312/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 0.2

env:
variables:
TOXENV: "py312-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
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
phases:
install:
runtime-versions:
python: latest
build:
commands:
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
- pyenv install 3.12.0
- pyenv local 3.12.0
- pip install --upgrade pip
- pip install setuptools
- pip install "tox < 4.0"
- tox
27 changes: 27 additions & 0 deletions codebuild/py312/integ.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 0.2

env:
variables:
TOXENV: "py312-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
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
arn:aws:kms:us-west-2:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_2: >-
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
phases:
install:
runtime-versions:
python: latest
build:
commands:
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
- pyenv install 3.12.0
- pyenv local 3.12.0
- pip install --upgrade pip
- pip install setuptools
- pip install "tox < 4.0"
- tox
4 changes: 1 addition & 3 deletions codebuild/py37/awses_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.7
build:
commands:
- pyenv install 3.7.12
- pyenv local 3.7.12
- pip install "tox < 4.0"
- cd test_vector_handlers
- tox
4 changes: 1 addition & 3 deletions codebuild/py37/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.7
build:
commands:
- pyenv install 3.7.12
- pyenv local 3.7.12
- pip install "tox < 4.0"
- tox
4 changes: 1 addition & 3 deletions codebuild/py37/integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.7
build:
commands:
- pyenv install 3.7.12
- pyenv local 3.7.12
- pip install "tox < 4.0"
- tox
4 changes: 1 addition & 3 deletions codebuild/py38/awses_local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.8
build:
commands:
- pyenv install 3.8.12
- pyenv local 3.8.12
- pip install "tox < 4.0"
- cd test_vector_handlers
- tox
4 changes: 1 addition & 3 deletions codebuild/py38/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.8
build:
commands:
- pyenv install 3.8.12
- pyenv local 3.8.12
- pip install "tox < 4.0"
- tox
4 changes: 1 addition & 3 deletions codebuild/py38/integ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.8
build:
commands:
- pyenv install 3.8.12
- pyenv local 3.8.12
- pip install "tox < 4.0"
- tox
4 changes: 1 addition & 3 deletions codebuild/py39/awses_1.7.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.9
build:
commands:
- pyenv install 3.9.7
- pyenv local 3.9.7
- pip install "tox < 4.0"
- cd test_vector_handlers
- tox
4 changes: 1 addition & 3 deletions codebuild/py39/awses_2.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ env:
phases:
install:
runtime-versions:
python: latest
python: 3.9
build:
commands:
- pyenv install 3.9.7
- pyenv local 3.9.7
- pip install "tox < 4.0"
- cd test_vector_handlers
- tox
Loading

0 comments on commit 93a67d8

Please sign in to comment.