| 1 |
# GitHub Actions workflow that runs on a cron schedule. |
| 2 |
|
| 3 |
name: Cron Scheduled CI Tests |
| 4 |
|
| 5 |
on: |
| 6 |
schedule: |
| 7 |
# run at 6am UTC on Mondays |
| 8 |
- cron: '0 6 * * 1' |
| 9 |
|
| 10 |
jobs: |
| 11 |
# Testing links in documents is a good example of something to run on a schedule |
| 12 |
# to catch links that stop working for some reason. |
| 13 |
doc_test: |
| 14 |
runs-on: ubuntu-latest |
| 15 |
steps: |
| 16 |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 17 |
- name: Set up Python to build docs with sphinx |
| 18 |
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 |
| 19 |
with: |
| 20 |
python-version: 3.10 |
| 21 |
- name: Install base dependencies |
| 22 |
run: | |
| 23 |
python -m pip install --upgrade pip |
| 24 |
python -m pip install tox |
| 25 |
- name: Check links in docs using tox |
| 26 |
run: | |
| 27 |
tox -e linkcheck |