diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 817d7e86f91e4914d054af17c9519b097e661ae6..fe8b49706089a8378112064f790fa1c15a0b614b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -194,13 +194,13 @@ docs preview [M]: - pip install -e .[docs] - *pip-setup-extra-headless script: - - make docs SPHINXOPTS="--keep-going -n -j 4" > sphinx_output.log 2>&1 + - make docs SPHINXOPTS="--keep-going -n -j 4" | tee sphinx_output.log - echo "Counting warnings in Sphinx output..." # Count lines with "WARNING" in the Sphinx log - warning_count=$(grep -c "WARNING" sphinx_output.log || true) - echo "Found $warning_count warnings in Sphinx documentation." # Set the warning threshold - - warning_threshold=11 + - warning_threshold=7 # Check if warnings exceed the threshold - if [ "$warning_count" -lt "$warning_threshold" ]; then echo "Warnings ($warning_count) are below the threshold ($warning_threshold). Pipeline is green.";