Hi :wave: I would like to try and publish the ked...
# plugins-integrations
g
Hi 👋 I would like to try and publish the kedro-viz of a kedro project on GitHub pages using the dedicated action. The issue is that my project is using uv and it seems to me the action uses system Python. I have tried a wide range of tricks unsuccessfully and no matter what I do the action sees my project and its dependencies uninstalled. I was wondering if anyone here has been running into this problem? Here is my currently failing workflow:
Copy code
name: Publish and share Kedro Viz

permissions:
  pages: write
  id-token: write

on:
  pull_request:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  deploy-viz:
    name: Deploy Kedro Viz
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install the latest version of uv
        uses: astral-sh/setup-uv@v4
        with:
          enable-cache: true
          cache-dependency-glob: "pyproject.toml"
          github-token: ${{ secrets.GITHUB_TOKEN }}
          python-version: "3.13"

      - name: Sync uv
        run: uv sync --group viz

      - name: Deploy Kedro-Viz to GH Pages
        uses: kedro-org/publish-kedro-viz@v2
Thanks a lot for your help :)
👀 1
r
Hi @Guillaume Tauzin, The action tries to install kedro viz (yes via pip) and runs kedro viz build at the project path. I tried to mimic this locally with uv and it works fine. If I understand correctly, you are installing your kedro project dependencies via uv and the action fails complaining some modules are missing ?
g
Hi @Ravi Kumar Pilla Thanks for your support! Yes, this is what I think is happening. The workflow run is here: https://github.com/gtauzin/kedro-dagster-example/actions/runs/18982058480/job/54216794738?pr=4 The
python
used by the action is not the one from the uv venv so here
kedro-dagster
, which is installed by my
uv sync
call is not available when building the project.
r
I get the issue. Can you please open an issue here and I will work on it next sprint - https://github.com/kedro-org/publish-kedro-viz/issues ? In the mean-time as a workaround you can directly run the commands the action uses. I know it is not ideal but to unblock you, you can do the steps in the action directly
g
Done: https://github.com/kedro-org/publish-kedro-viz/issues/6 Thanks, I'll use the steps directly for now :)
👍 1
thankyou 1