From e82459a7a46621b7ed87b2869790571c52f64b45 Mon Sep 17 00:00:00 2001 From: vnherdeiro Date: Sun, 8 Sep 2024 00:23:08 +0100 Subject: [PATCH] fix CI --- .ci/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.ci/test.sh b/.ci/test.sh index b0a8dbd0d766..b78633155685 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -131,9 +131,11 @@ if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then source activate $CONDA_ENV # check reStructuredText formatting cd "${BUILD_DIRECTORY}/python-package" - rstcheck --report-level warning "$(find . -type f -name "*.rst")" || exit 1 + find . -type f -name "*.rst" -exec \ + rstcheck --report-level warning {} \; || exit 1 cd "${BUILD_DIRECTORY}/docs" - rstcheck --report-level warning --ignore-directives=autoclass,autofunction,autosummary,doxygenfile "$(find . -type f -name "*.rst")" || exit 1 + find . -type f -name "*.rst" -exec \ + rstcheck --report-level warning --ignore-directives=autoclass,autofunction,autosummary,doxygenfile {} \; || exit 1 # build docs make html || exit 1 if [[ $TASK == "check-links" ]]; then