From 4f3159b3fa2ba2e862dac76778d6204ea5447150 Mon Sep 17 00:00:00 2001 From: Kumi Date: Thu, 25 Apr 2024 08:53:35 +0200 Subject: [PATCH] refactor(workflows): streamline Python dep installation Simplified the Python dependency installation process within the pdoc workflow by combining multiple pip install commands into a single instruction. This reduces the number of steps and makes the workflow more efficient. The update also includes the removal of unnecessary comments and unused dependency installation commands, making the YAML file cleaner and easier to understand. This change could potentially speed up the documentation generation process by reducing the overall runtime of the workflow. --- .forgejo/workflows/pdoc.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/pdoc.yml b/.forgejo/workflows/pdoc.yml index 339a354..53b2289 100644 --- a/.forgejo/workflows/pdoc.yml +++ b/.forgejo/workflows/pdoc.yml @@ -23,14 +23,11 @@ jobs: run: | apt update apt install -y python3 python3-pip - # ADJUST THIS: install all dependencies (including pdoc) - #- run: pip install -e . - #- run: pip install --upgrade pip - - run: pip install pdoc - - run: pip install requests - #- run: pip install json - # ADJUST THIS: build your documentation into docs/. - # We use a custom build script for pdoc itself, ideally you just run `pdoc -o docs/ ...` here. + + - name: Install Python dependencies + run: | + pip install pdoc requests --break-system-packages + - run: python3 -m pdoc -d markdown -o docs src/plankapy/plankapy.py - uses: forgejo/upload-artifact@v4