Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
56fc036d
Unverified
Commit
56fc036d
authored
Feb 03, 2021
by
Nikita Titov
Committed by
GitHub
Feb 03, 2021
Browse files
[ci] install Linkchecker only for check-links job (#3893)
* Update linkchecker.yml * Update test.sh
parent
1c18ad32
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
.ci/test.sh
.ci/test.sh
+2
-1
.github/workflows/linkchecker.yml
.github/workflows/linkchecker.yml
+1
-1
No files found.
.ci/test.sh
View file @
56fc036d
...
...
@@ -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
...
...
.github/workflows/linkchecker.yml
View file @
56fc036d
...
...
@@ -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
*
*
*'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment