Skip to content

Commit

Permalink
ci: install dependencies from poetry lock file only without resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sig committed Dec 21, 2024
1 parent 4a42f6a commit f5c461e
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 75 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install
poetry install --sync --no-interaction
- name: Run lint
run: make lint
Expand Down Expand Up @@ -93,7 +93,7 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install
poetry install --sync --no-interaction
- name: Run tests
run: make test
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry config virtualenvs.create false
poetry install
poetry install --sync --no-interaction
- name: Set up Docker
uses: docker/setup-buildx-action@v3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ GIT_TAG=v0.1.28 ./deploy.sh

```bash
python3.12 -m pip install poetry -U
poetry install
poetry install --sync --no-interaction
```

2. Start services:
Expand Down
4 changes: 3 additions & 1 deletion api.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ LABEL description="Portfolio Analytics API"

# Install dependencies
COPY pyproject.toml ./pyproject.toml
RUN poetry install --only main,api
RUN pip install --no-cache-dir poetry==1.8.5 && \
poetry config virtualenvs.create false && \
poetry install --no-interaction --no-ansi --only main,api

# Copy source code to the container
COPY portfolio_analytics/common portfolio_analytics/common
Expand Down
4 changes: 0 additions & 4 deletions base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,3 @@ RUN groupadd -g 1000 appgroup && \
useradd -u 1000 -g appgroup -s /bin/bash -m appuser

WORKDIR /app

# Install poetry
RUN python3.12 -m pip install poetry==1.8.5 && \
poetry config virtualenvs.create false
4 changes: 3 additions & 1 deletion dashboard.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ LABEL description="Portfolio Analytics Dashboard"

# Install dependencies
COPY pyproject.toml ./pyproject.toml
RUN poetry install --only main,dashboard
RUN pip install --no-cache-dir poetry==1.8.5 && \
poetry config virtualenvs.create false && \
poetry install --no-interaction --no-ansi --only main,dashboard

# Copy source code to the container
COPY portfolio_analytics/common portfolio_analytics/common
Expand Down
128 changes: 64 additions & 64 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ packages = [{ include = "portfolio_analytics" }]

[tool.poetry.dependencies]
python = ">=3.12,<3.13"
numpy = "^2.1.3"
numpy = "2.2.0"
openpyxl = "^3.1.5"
pandas = "^2.2.3"
pyarrow = "^18.1.0"
Expand Down

0 comments on commit f5c461e

Please sign in to comment.