diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ed35696..514dd2f6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,12 @@ jobs: - run: uv pip install --system -U mkdocs-material mkdocstrings-python env: UV_EXTRA_INDEX_URL: ${{ secrets.UV_EXTRA_INDEX_URL }} - - run: mkdocs build + - run: | + if [[ -n "${{ github.head_ref }}" && "${{ github.repository }}" != "${{ github.event.pull_request.head.repo.full_name }}" ]]; then + mkdocs build --no-strict + else + mkdocs build + fi test: name: test on ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index d97b30b4..ea63c468 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -140,6 +140,14 @@ allow-direct-references = true [tool.hatch.build.targets.wheel] packages = ["logfire"] +[tool.hatch.build.targets.sdist] +include = [ + "/README.md", + "/Makefile", + "/logfire", + "/tests", +] + # https://beta.ruff.rs/docs/configuration/ [tool.ruff] line-length = 120