refactor(workflows): streamline Python dep installation
Some checks failed
website / build (push) Failing after 27s

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.
This commit is contained in:
Kumi 2024-04-25 08:53:35 +02:00
parent d5777fac54
commit 4f3159b3fa
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -23,14 +23,11 @@ jobs:
run: | run: |
apt update apt update
apt install -y python3 python3-pip apt install -y python3 python3-pip
# ADJUST THIS: install all dependencies (including pdoc)
#- run: pip install -e . - name: Install Python dependencies
#- run: pip install --upgrade pip run: |
- run: pip install pdoc pip install pdoc requests --break-system-packages
- 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.
- run: python3 -m pdoc -d markdown -o docs src/plankapy/plankapy.py - run: python3 -m pdoc -d markdown -o docs src/plankapy/plankapy.py
- uses: forgejo/upload-artifact@v4 - uses: forgejo/upload-artifact@v4