From 56fc036def837aa6a754ceb5cdecde212892edcd Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Wed, 3 Feb 2021 00:19:59 +0300 Subject: [PATCH] [ci] install Linkchecker only for check-links job (#3893) * Update linkchecker.yml * Update test.sh --- .ci/test.sh | 3 ++- .github/workflows/linkchecker.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.ci/test.sh b/.ci/test.sh index 0a6f81b9d..416eec422 100755 --- a/.ci/test.sh +++ b/.ci/test.sh @@ -21,7 +21,7 @@ cd $BUILD_DIRECTORY if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then cd $BUILD_DIRECTORY/docs conda install -q -y -n $CONDA_ENV -c conda-forge doxygen - pip install --user -r requirements.txt linkchecker rstcheck + pip install --user -r requirements.txt rstcheck # check reStructuredText formatting cd $BUILD_DIRECTORY/python-package rstcheck --report warning `find . -type f -name "*.rst"` || exit -1 @@ -31,6 +31,7 @@ if [[ $TASK == "check-docs" ]] || [[ $TASK == "check-links" ]]; then make html || exit -1 if [[ $TASK == "check-links" ]]; then # check docs for broken links + pip install --user linkchecker linkchecker --config=.linkcheckerrc ./_build/html/*.html || exit -1 exit 0 fi diff --git a/.github/workflows/linkchecker.yml b/.github/workflows/linkchecker.yml index 1b03c1103..dee253118 100644 --- a/.github/workflows/linkchecker.yml +++ b/.github/workflows/linkchecker.yml @@ -3,7 +3,7 @@ name: Link checks on: # Run manually by clicking a button in the UI workflow_dispatch: - # Run every 8 hours + # Run once a day at 8:00am UTC schedule: - cron: '0 8 * * *'