diff --git a/.github/workflows/python-docs.yml b/.github/workflows/python-docs.yml index fbb40e1..46e68c4 100644 --- a/.github/workflows/python-docs.yml +++ b/.github/workflows/python-docs.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: py-denormalized + working-directory: ./py-denormalized steps: - uses: actions/checkout@v4 @@ -28,13 +28,16 @@ jobs: uses: astral-sh/setup-uv@v3 with: version: "0.5.1" - enable-cache: true - cache-dependency-glob: "uv.lock" + # enable-cache: true + # cache-dependency-glob: "uv.lock" + + - name: "Set up Python" + uses: actions/setup-python@v5 + with: + python-version-file: "pyproject.toml" - - name: Set up Python - run: uv python install - name: Install the project - run: uv sync --all-extras --dev + run: uv sync --only-group docs - run: pdoc -t pdocs/ python/denormalized/ -o pdocs/_build - uses: actions/upload-pages-artifact@v3 @@ -43,18 +46,18 @@ jobs: # Deploy the artifact to GitHub pages. # This is a separate job so that only actions/deploy-pages has the necessary permissions. - deploy: - needs: build - runs-on: ubuntu-latest - defaults: - run: - working-directory: py-denormalized - permissions: - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - id: deployment - uses: actions/deploy-pages@v4 + # deploy: + # needs: build + # runs-on: ubuntu-latest + # defaults: + # run: + # working-directory: ./py-denormalized + # permissions: + # pages: write + # id-token: write + # environment: + # name: github-pages + # url: ${{ steps.deployment.outputs.page_url }} + # steps: + # - id: deployment + # uses: actions/deploy-pages@v4 diff --git a/py-denormalized/pyproject.toml b/py-denormalized/pyproject.toml index 681a610..b8fb1af 100644 --- a/py-denormalized/pyproject.toml +++ b/py-denormalized/pyproject.toml @@ -13,6 +13,9 @@ dependencies = [ "datafusion>=40.1.0", ] +[project.optional-dependencies] +feast = ["feast"] + [dependency-groups] dev = [ "pdoc>=15.0.0", @@ -25,7 +28,9 @@ dev = [ "pdoc>=15.0.0", "pip>=24.3.1", ] -feast = ["feast"] +docs = [ + "pdoc>=15.0.0", +] [tool.maturin] python-source = "python" diff --git a/py-denormalized/uv.lock b/py-denormalized/uv.lock index 961f0c9..acd3ab5 100644 --- a/py-denormalized/uv.lock +++ b/py-denormalized/uv.lock @@ -388,6 +388,9 @@ dev = [ { name = "pyarrow-stubs" }, { name = "pytest" }, ] +docs = [ + { name = "pdoc" }, +] feast = [ { name = "feast" }, ] @@ -409,6 +412,7 @@ dev = [ { name = "pyarrow-stubs", specifier = ">=17.11" }, { name = "pytest", specifier = ">=8.3.2" }, ] +docs = [{ name = "pdoc", specifier = ">=15.0.0" }] feast = [{ name = "feast" }] [[package]]