Skip to content

Commit

Permalink
install primary deps to container, dev deps in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
smnorris committed Jul 31, 2024
1 parent 627204d commit 15ac54a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 15ac54a

Please sign in to comment.