doc: fix CI

This commit is contained in:
Éloi Rivard 2024-12-19 10:40:06 +01:00
parent fb48f42f4d
commit 3a2c1b1472
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184
3 changed files with 4 additions and 3 deletions

View file

@ -107,5 +107,5 @@ jobs:
sudo DEBIAN_FRONTEND=noninteractive apt --yes --quiet install libsasl2-dev python3-dev libldap2-dev libssl-dev slapd ldap-utils
- run: |
export TZ=UTC
uv sync --group doc
uv sync --group doc --all-extras
uv run sphinx-build doc build/sphinx/html --fail-on-warning

View file

@ -74,6 +74,6 @@ doc:
image: ghcr.io/astral-sh/uv:$UV_VERSION-python$PYTHON_VERSION-$BASE_LAYER
stage: test
script:
- uv sync --group doc
- uv sync --group doc --all-extras
- uv run sphinx-build doc build/sphinx/html --fail-on-warning
- uv cache prune --ci

View file

@ -233,7 +233,7 @@ env_list = [
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
dependency_groups = ["dev"]
uv_sync_flags = ["--extra", "front", "--extra", "oidc", "--extra", "sqlite", "--extra", "ldap"]
uv_sync_flags = ["--all-extras"]
commands = [
["pytest", "--showlocals", "--full-trace", "{posargs}"],
]
@ -251,6 +251,7 @@ basepython = ["python3.10"]
[tool.tox.env.doc]
dependency_groups = ["doc"]
uv_sync_flags = ["--all-extras"]
commands = [
["sphinx-build", "--builder", "html", "--fail-on-warning", "doc", "build/sphinx/html"],
["sphinx-build", "--builder", "man", "doc", "build/sphinx/html"],