mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 06:56:34 +00:00
243b69656b
- Modified `.gitignore` to reflect the new path for test results. - Updated `docker-compose.test.yml` to mount the correct test results directory. - Adjusted `Dockerfile.test` to set the `PYTHONPATH` and ensure test results are saved in the updated location. - Added `boto3` and `netron` to `requirements-test.txt` to support new functionalities. - Updated `pytest.ini` to include the new `pythonpath` for test discovery. These changes streamline the testing process and ensure compatibility with the updated directory structure.
17 lines
403 B
Docker
17 lines
403 B
Docker
FROM python:3.10-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends libgl1 libglib2.0-0 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements-test.txt .
|
|
RUN pip install --no-cache-dir -r requirements-test.txt
|
|
|
|
COPY . .
|
|
|
|
ENV PYTHONPATH=/app/src
|
|
|
|
CMD ["python", "-m", "pytest", "tests/", "--tb=short", "--junitxml=/app/tests/test-results/test-results.xml", "-q"]
|