-
Notifications
You must be signed in to change notification settings - Fork 39
47 lines (35 loc) · 1.41 KB
/
doctest.yml
File metadata and controls
47 lines (35 loc) · 1.41 KB
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
47
name: Documentation test
on: [push, pull_request]
jobs:
docbuild:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Conda
uses: conda-incubator/setup-miniconda@v4
with:
activate-environment: festim2-docs
environment-file: docs/environment.yml
- name: Doc Tests
shell: bash -l {0}
run: sphinx-build -b doctest docs/source docs/_build/doctest
- name: urls-checker
uses: urlstechie/urlchecker-action@master
with:
# A subfolder or path to navigate to in the present or cloned repository
subfolder: docs
# A comma-separated list of file types to cover in the URL checks
file_types: .md,.py,.rst
# Choose whether to include file with no URLs in the prints.
print_all: false
# The timeout seconds to provide to requests, defaults to 5 seconds
timeout: 5
# How many times to retry a failed request (each is logged, defaults to 1)
retry_count: 3
# A comma separated links to exclude during URL checks
exclude_urls: https://www.lspm.cnrs.fr/en/home/,https://www.theses.fr/2022PA131054
# A comma separated patterns to exclude during URL checks
exclude_patterns:
# choose if the force pass or not
force_pass : false