Skip to content

Commit 9a9a0b1

Browse files
author
Lucas McDonald
committed
m
1 parent 2aec2c3 commit 9a9a0b1

File tree

3 files changed

+39
-5
lines changed

3 files changed

+39
-5
lines changed

.github/workflows/ci_examples_python.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,11 @@ jobs:
8585
run: |
8686
make transpile_python
8787
88-
- name: Test Examples
89-
working-directory: ./Examples
88+
- name: Test DynamoDbEncryption Examples
89+
working-directory: ./Examples/runtimes/python
9090
run: |
9191
# Run simple examples
92-
python -m pytest -s -v DynamoDBEncryption/test/
92+
tox -e dynamodbencryption
9393
# Run migration examples
94-
# python -m pytest -s -v Migration/PlaintextToAWSDBE/test/
95-
# python -m pytest -s -v Migration/DDBECToAWSDBE/test/
94+
# tox -e migration
9695
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[tool.poetry]
2+
name = "aws-dbesdk-dynamodb-examples"
3+
version = "0.1.0"
4+
description = ""
5+
authors = ["AWS Crypto Tools <[email protected]>"]
6+
7+
[tool.poetry.dependencies]
8+
python = "^3.11.0"
9+
aws-dbesdk-dynamodb = { path = "../../../DynamoDbEncryption/runtimes/python", develop = false}
10+
11+
[tool.poetry.group.test.dependencies]
12+
pytest = "^7.4.0"
13+
tox = "^3"
14+
15+
[build-system]
16+
requires = ["poetry-core<2.0.0"]
17+
build-backend = "poetry.core.masonry.api"

Examples/runtimes/python/tox.ini

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[tox]
2+
isolated_build = True
3+
envlist =
4+
py{311,312,313}-{dynamodbencryption,migration}
5+
6+
[testenv:base-command]
7+
commands = poetry run pytest -s -v -l {posargs}
8+
9+
[testenv]
10+
skip_install = true
11+
allowlist_externals = poetry
12+
passenv = AWS_*
13+
commands_pre =
14+
poetry lock
15+
poetry install --with test
16+
commands =
17+
dynamodbencryption: {[testenv:base-command]commands} DynamoDBEncryption/test/
18+
migration: {[testenv:base-command]commands} Migration/PlaintextToAWSDBE/test/

0 commit comments

Comments
 (0)