Skip to content

Commit

Permalink
[CLEANUP]
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbdevaney committed Jan 3, 2025
1 parent 5958d1f commit 2387fef
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,27 @@ WORKDIR /usr/src/app
# Copy the entire project into the container
COPY . .

# Install Poetry
# Install Poetry and necessary dependencies
RUN pip install poetry

# Configure Poetry to avoid virtual environments and install dependencies
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi

# Install additional dependencies outside Poetry (e.g., swarms, pytest)
# Install additional dependencies (e.g., swarms, pytest)
RUN pip install swarms pytest

# Ensure pytest is installed and available
RUN pytest --version
RUN pytest --version || echo "pytest not found"

# Ensure the logs directory has correct permissions (in case of permission issues with mounted volumes)
# Ensure the logs directory has correct permissions
RUN mkdir -p /usr/src/app/logs && chmod -R 777 /usr/src/app/logs

# Ensure that the PATH includes the directory where pytest is installed
ENV PATH="/usr/local/bin:$PATH"

# List files to verify pytest and tests exist
RUN ls -l /usr/src/app

# Set the working directory to the tests directory inside the container
WORKDIR /usr/src/app/tests

Expand Down

0 comments on commit 2387fef

Please sign in to comment.