From 086f6ee11edce5767d26cb112c60a8093416ec8d Mon Sep 17 00:00:00 2001 From: theteacat Date: Mon, 2 Oct 2023 13:33:21 +0100 Subject: [PATCH] Add test-requirements install to test-lambda stage --- build_setup/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_setup/Dockerfile b/build_setup/Dockerfile index 7995e23..d26716f 100644 --- a/build_setup/Dockerfile +++ b/build_setup/Dockerfile @@ -49,6 +49,8 @@ RUN rm -rf /build_setup FROM build-python-lambda as test-python-lambda RUN python3 -m pip install pytest pytest-cov +COPY tests/requirements.txt /github-api-discovery/tests/requirements.txt +RUN python3 -m pip install -r /github-api-discovery/tests/requirements.txt COPY tests/ ${LAMBDA_TASK_ROOT}/tests RUN PYTHONPATH=${LAMBDA_TASK_ROOT} pytest --cov ${LAMBDA_TASK_ROOT} --cov-report=xml:coverage.xml -vv -x