From 15ac54aa5d816ae20cac546cb058aae97afb335f Mon Sep 17 00:00:00 2001 From: Simon Norris Date: Wed, 31 Jul 2024 11:13:34 -0700 Subject: [PATCH] install primary deps to container, dev deps in workflow --- .github/workflows/test.yaml | 8 +++++--- Dockerfile | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4605e9b..5d8b2f9 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -38,9 +38,11 @@ jobs: fail-fast: false steps: - uses: actions/checkout@v4 + - name: Install test dependencies + run: | + /venv/bin/python -m pip install -r requirements-dev.txt - name: Run tests run: | - . venv/bin/activate - python -m pytest -v -rxXs + /venv/bin/python -m pytest -v -rxXs env: - DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres \ No newline at end of file + DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres diff --git a/Dockerfile b/Dockerfile index bd70704..bf19f3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,7 @@ COPY requirements*.txt ./ RUN python3 -m venv /venv && \ /venv/bin/python -m pip install -U pip && \ /venv/bin/python -m pip install --no-cache-dir --upgrade numpy && \ - /venv/bin/python -m pip install -r requirements-dev.txt && \ + /venv/bin/python -m pip install -r requirements.txt && \ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ unzip awscliv2.zip && \ ./aws/install \ No newline at end of file