From 247fa3a885f7ad6108a9b56902b61ded312e32b3 Mon Sep 17 00:00:00 2001 From: lakkeger Date: Tue, 9 Apr 2024 13:24:40 +0200 Subject: [PATCH] Cache python setup --- buildspec.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index f980422..b2ed956 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -13,8 +13,8 @@ phases: python: 3.11 steps: - run: | - pyenv install 3.9 - pyenv global 3.9 + test -d /root/.pyenv/versions/3.9.16/bin || pyenv install 3.9.16 + pyenv global 3.9.16 - run: pip install -r requirements-dev.txt - run: docker pull public.ecr.aws/localstack/localstack-pro:latest - run: docker image tag public.ecr.aws/localstack/localstack-pro:latest localstack/localstack-pro:latest @@ -33,3 +33,7 @@ phases: - pytest tests finally: - localstack logs + +cache: + paths: + - /root/.pyenv/versions/3.9.16