-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (37 loc) · 1 KB
/
linkcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: linkcheck
# Only build PRs, the main branch, and releases.
on:
pull_request:
push:
branches:
- main
release:
types:
- published
schedule:
- cron: "14 14 20 * *"
jobs:
linkcheck:
runs-on: ubuntu-latest
continue-on-error: true
steps:
# Cancel any previous run of the test job; [pin v0.12.1 (2024-01-25)]
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa
with:
access_token: ${{ github.token }}
# Checks-out your repository under $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Install dependencies
shell: bash -l {0}
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Check links
shell: bash -l {0}
run: make linkcheck