diff --git a/.dockerignore b/.dockerignore index f6a5e40..aeb63c7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -47,5 +47,6 @@ Thumbs.db # Docs (optional - include if you want them in container) docs/ -*.md +# Keep README.md for Docker build +# *.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6b4e63..05fcbbf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -344,11 +344,15 @@ jobs: echo "⚠️ Warning: Could not verify SonarQube server connectivity (continuing anyway)" fi + - name: Install Python and dependencies + run: | + apt-get update && apt-get install -y python3 python3-pip + pip3 install --upgrade pip + - name: Generate coverage report run: | echo "Generating coverage report for SonarQube..." - pip install --upgrade pip - pip install -e ".[dev]" + pip3 install -e ".[dev]" pytest tests/ --cov=src/pote --cov-report=xml --cov-report=term || true - name: Run SonarScanner diff --git a/Dockerfile b/Dockerfile index 59ecdb0..7fb2e9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,11 @@ RUN apt-get update && apt-get install -y \ # Copy project files COPY pyproject.toml . -COPY README.md . COPY src/ src/ COPY alembic/ alembic/ COPY alembic.ini . COPY scripts/ scripts/ +# Note: README.md excluded by .dockerignore (not needed in container) # Install Python dependencies RUN pip install --no-cache-dir --upgrade pip && \ diff --git a/pyproject.toml b/pyproject.toml index 44473ff..9291671 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,6 +18,7 @@ dependencies = [ "pydantic-settings>=2.0", "python-dotenv>=1.0", "requests>=2.31", + "httpx>=0.24", "pandas>=2.0", "numpy>=1.24", "yfinance>=0.2",