Skip to content

Commit

Permalink
test: periodic link check
Browse files Browse the repository at this point in the history
  • Loading branch information
sethfischer committed Dec 2, 2023
1 parent 10ce43a commit 81b367b
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: link check

on:
schedule:
- cron: "0 8 * * *"

jobs:
linkcheck:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
poetry --version
- name: Install dependencies
run: poetry install --no-interaction

- name: Check links in documentation
run: poetry run make -C docs linkcheck
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sethfischer/rover
=================

|build-status| |lint-status| |test-status| |docs-status|
|build-status| |lint-status| |test-status| |docs-status| |linkcheck-status|


Quarter-scale Mars rover based on the NASA Mars 2020 Mission Perseverance Rover.
Expand Down Expand Up @@ -38,3 +38,6 @@ License
.. |docs-status| image:: https://readthedocs.org/projects/sethfischer-osr/badge/?version=latest
:target: https://sethfischer-osr.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. |linkcheck-status| image:: https://github.com/sethfischer/rover/actions/workflows/linkcheck.yml/badge.svg
:target: https://github.com/sethfischer/rover/actions/workflows/linkcheck.yml
:alt: Link Check Status
6 changes: 6 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ def canonical_url() -> str:
html_title = f"{project} v{release}"


linkcheck_ignore = [
"https://roverchallenge.eu/", # SSLCertVerificationError
"https://www.kickstarter.com/", # returns 403 for robots
]


cadquery_include_source = False


Expand Down

0 comments on commit 81b367b

Please sign in to comment.