mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 14:51:13 -03:00
Fixes 1db4dc4c3e (build_tools/update-dependencies.sh: add dependency
cooldown for Python packages, 2025-12-16).
24 lines
786 B
YAML
24 lines
786 B
YAML
name: Install sphinx
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- shell: bash
|
|
run: |
|
|
set -x
|
|
sudo pip install uv --break-system-packages
|
|
command -v uv
|
|
command -v uvx
|
|
# Check that pyproject.toml and the lock file are in sync.
|
|
# TODO Use "uv" to install Python as well.
|
|
: 'Note that --no-managed-python below would be implied but be explicit'
|
|
uv='env UV_PYTHON=python uv --no-managed-python'
|
|
$uv lock --check --exclude-newer="$(awk -F'"' <uv.lock '/^exclude-newer[[:space:]]*=/ {print $2}')"
|
|
# Install globally.
|
|
sudo $uv pip install --group=dev --system --break-system-packages
|
|
# Smoke test.
|
|
python -c 'import sphinx; import sphinx_markdown_builder'
|