File tree 1 file changed +25
-16
lines changed
1 file changed +25
-16
lines changed Original file line number Diff line number Diff line change 1
- # This workflow will install Python dependencies and check for broken links
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
-
4
1
name : Manual Pre Checks
5
2
6
3
on :
7
- push :
8
- branches :
9
- - " *"
10
4
pull_request :
11
- branches :
12
- - main
13
- - v2
14
- # Allows you to run this workflow manually from the Actions tab
5
+ types : [opened, synchronize]
15
6
workflow_dispatch :
16
7
17
8
jobs :
18
9
linkcheck :
19
10
runs-on : ubuntu-latest
20
11
steps :
21
- - uses : actions/checkout@v4
22
- - name : link-check
23
- run : |
24
- pip install -r requirements.txt
25
- make linkcheck
26
-
12
+ - uses : actions/checkout@v4
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v5
15
+ with :
16
+ python-version : 3.x
17
+ - name : Install Dependencies
18
+ run : pip install -r requirements.txt
19
+ - name : Clean Previous Builds
20
+ run : make linkcheck
21
+ build-docs :
22
+ runs-on : ubuntu-latest
23
+ needs : linkcheck
24
+ steps :
25
+ - uses : actions/checkout@v4
26
+ - name : Set up Python
27
+ uses : actions/setup-python@v5
28
+ with :
29
+ python-version : 3.x
30
+ - name : Install Dependencies
31
+ run : pip install -r requirements.txt
32
+ - name : Clean Previous Builds
33
+ run : make clean
34
+ - name : Build Documentation
35
+ run : make html SPHINXOPTS="-W"
You can’t perform that action at this time.
0 commit comments