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: |
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