From 4f1ecda2b473ca093fe9eb3dc18b901b9446c3d8 Mon Sep 17 00:00:00 2001 From: Charlotte Avery Date: Fri, 18 Oct 2024 15:57:21 +0100 Subject: [PATCH] Keep out-dated dependencies from being updated --- .gitignore | 6 ++++++ Dockerfile | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b6e4761..8353558 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,9 @@ dmypy.json # Pyre type checker .pyre/ + +# datasets +data/ + +# analysis notebooks +notebooks/ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 45fd3d4..de7df73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ USER user WORKDIR /home/user/src COPY --chown=user Pipfile* . -RUN pipenv sync +RUN pipenv sync --keep-outdated ENV PATH="/home/user/src/.venv/bin:$PATH" ENV PYTHONPATH=. ENV PYTHONHASHSEED=0 @@ -24,7 +24,7 @@ ENTRYPOINT ["python", "-m", "simulation"] FROM dependencies AS testrunner -RUN pipenv sync --dev +RUN pipenv sync --keep-outdated --dev ENV PYTEST_ADDOPTS="-p no:cacheprovider" COPY --chown=user . . CMD ["pytest"]