Skip to content

Commit cbab81d

Browse files
committed
chore: validate release
1 parent 23b50bd commit cbab81d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

codebuild/release/validate_released_with_examples.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ phases:
3232
- |
3333
while [ $NUM_RETRIES -gt 0 ]
3434
do
35-
tox -e validate-pypi-release -- $VERSION
35+
VERSION=$VERSION tox -e validate-pypi-release
3636
if [ $? -eq 0 ]; then
3737
echo "Standard examples successful"
3838
break
@@ -58,10 +58,9 @@ phases:
5858
# Run MPL examples with a fresh retry count
5959
- NUM_RETRIES=3
6060
- |
61-
echo "Running MPL examples"
6261
while [ $NUM_RETRIES -gt 0 ]
6362
do
64-
tox -e validate-pypi-release-mpl -- $VERSION
63+
VERSION=$VERSION tox -e validate-pypi-release-mpl
6564
if [ $? -eq 0 ]; then
6665
echo "MPL examples successful"
6766
break

tox.ini

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,11 @@ basepython = {[testenv:py-validate-base]basepython}
417417
skip_install = {[testenv:py-validate-base]skip_install}
418418
passenv = {[testenv:py-validate-base]passenv}
419419
deps = {[testenv:py-validate-base]deps}
420+
setenv =
421+
VERSION = {env:VERSION:latest}
420422
commands =
421423
# Install the specified version from PyPI (without MPL extras)
422-
pip install "aws-encryption-sdk=={posargs:latest}" --force-reinstall
424+
pip install "aws-encryption-sdk=={env:VERSION}" --force-reinstall
423425
# Run non-MPL examples
424426
{[testenv:base-command]commands} examples/test/legacy/ -m examples
425427

@@ -431,9 +433,11 @@ passenv = {[testenv:py-validate-base]passenv}
431433
deps =
432434
{[testenv:py-validate-base]deps}
433435
boto3
436+
setenv =
437+
VERSION = {env:VERSION:latest}
434438
commands =
435439
# Install the specified version from PyPI with MPL extras
436-
pip install "aws-encryption-sdk[MPL]=={posargs:latest}" --force-reinstall
440+
pip install "aws-encryption-sdk[MPL]=={env:VERSION}" --force-reinstall
437441
# Install MPL requirements needed for MPL examples
438442
pip install -r requirements_mpl.txt
439443
# Run MPL-specific examples

0 commit comments

Comments
 (0)