diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 04a1255..92cb413 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,10 @@ jobs: - run: python -m build - run: docker build --tag logsight-ai:${{ github.sha }} . - run: docker run --rm logsight-ai:${{ github.sha }} health + - name: Verify installed package metadata + run: | + docker run --rm --entrypoint python logsight-ai:${{ github.sha }} -c \ + "from importlib.metadata import metadata; package = metadata('logsight-ai'); assert package['Requires-Python'] == '>=3.10'; assert package['Description-Content-Type'] == 'text/markdown'" security: runs-on: ubuntu-latest diff --git a/Dockerfile b/Dockerfile index 287b9e9..5b0f1a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app RUN pip install --upgrade pip build # Copy project files required for the build -COPY pyproject.toml requirements.txt ./ +COPY pyproject.toml requirements.txt README.md ./ COPY logsight/ logsight/ # Build the wheel