From 58b2078f82cdae7d9c67ecc23f3cedb61ac57b7b Mon Sep 17 00:00:00 2001 From: Phil Snyder Date: Wed, 11 Sep 2024 11:36:20 -0700 Subject: [PATCH] add raw lambda tests to ci/cd --- .github/workflows/upload-and-deploy.yaml | 2 ++ tests/test_lambda_raw.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/upload-and-deploy.yaml b/.github/workflows/upload-and-deploy.yaml index b2e87eb..b3277a1 100755 --- a/.github/workflows/upload-and-deploy.yaml +++ b/.github/workflows/upload-and-deploy.yaml @@ -132,11 +132,13 @@ jobs: - name: Install additional python dependency run: | pipenv install ecs_logging~=2.0 + pipenv install pytest-datadir - name: Test lambda scripts with pytest run: | pipenv run python -m pytest tests/test_s3_event_config_lambda.py -v pipenv run python -m pytest tests/test_s3_to_glue_lambda.py -v + pipenv run python -m pytest -v tests/test_lambda_raw.py - name: Test dev synapse folders for STS access with pytest run: > diff --git a/tests/test_lambda_raw.py b/tests/test_lambda_raw.py index 453853b..9af6592 100644 --- a/tests/test_lambda_raw.py +++ b/tests/test_lambda_raw.py @@ -4,7 +4,7 @@ import zipfile import boto3 -import pytest +import pytest # requires pytest-datadir to be installed from moto import mock_s3 import src.lambda_function.raw.app as app