@@ -15,57 +15,57 @@ jobs:
15
15
build-test-book :
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v4
18
+ - uses : actions/checkout@v4
19
19
20
- - name : Setup Python
21
- uses : actions/setup-python@v5
22
- with :
23
- python-version : ' 3.9'
20
+ - name : Setup Python
21
+ uses : actions/setup-python@v5
22
+ with :
23
+ python-version : " 3.9"
24
24
25
- - name : Upgrade pip
26
- run : |
27
- # install pip=>20.1 to use "pip cache dir"
28
- python3 -m pip install --upgrade pip
29
- - name : Get pip cache dir
30
- id : pip-cache
31
- run : echo "::set-output name=dir::$(pip cache dir)"
25
+ - name : Upgrade pip
26
+ run : |
27
+ # install pip=>20.1 to use "pip cache dir"
28
+ python3 -m pip install --upgrade pip
29
+ - name : Get pip cache dir
30
+ id : pip-cache
31
+ run : echo "::set-output name=dir::$(pip cache dir)"
32
32
33
- - name : Cache dependencies
34
- uses : actions/cache@v4
35
- with :
36
- path : ${{ steps.pip-cache.outputs.dir }}
37
- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
38
- restore-keys : |
39
- ${{ runner.os }}-pip-
33
+ - name : Cache dependencies
34
+ uses : actions/cache@v4
35
+ with :
36
+ path : ${{ steps.pip-cache.outputs.dir }}
37
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
38
+ restore-keys : |
39
+ ${{ runner.os }}-pip-
40
40
41
- - name : Install dependencies
42
- run : python3 -m pip install nox
41
+ - name : Install dependencies
42
+ run : python3 -m pip install nox
43
43
44
- - name : Build book
45
- run : nox -s docs-test
44
+ - name : Build book
45
+ run : nox -s docs-test
46
46
47
- # Save html as artifact
48
- - name : Save book html as artifact for viewing
49
- uses : actions/upload-artifact@v4
50
- with :
51
- name : book-html
52
- path : |
53
- _build/html/
47
+ # Save html as artifact
48
+ - name : Save book html as artifact for viewing
49
+ uses : actions/upload-artifact@v4
50
+ with :
51
+ name : book-html
52
+ path : |
53
+ _build/html/
54
54
55
- # Push the book's HTML to github-pages
56
- - name : Push to GitHub Pages
57
- # Only push if on main branch
58
- if : github.ref == 'refs/heads/main'
59
-
60
- with :
61
- github_token : ${{ secrets.GITHUB_TOKEN }}
62
- publish_dir : ./_build/html
55
+ # Push the book's HTML to github-pages
56
+ - name : Push to GitHub Pages
57
+ # Only push if on main branch
58
+ if : github.ref == 'refs/heads/main'
59
+
60
+ with :
61
+ github_token : ${{ secrets.GITHUB_TOKEN }}
62
+ publish_dir : ./_build/html
63
63
64
- # Test for bad links and ensure alt tags for usability
65
- - name : Check HTML using htmlproofer
66
- uses : chabad360/htmlproofer@master
67
- with :
68
- directory : ' _build/html'
69
- arguments : |
70
- --ignore-files "/.+\/_static\/.+/,/genindex.html/"
71
- --ignore-status-codes "404, 403, 429, 503"
64
+ # Test for bad links and ensure alt tags for usability
65
+ - name : Check HTML using htmlproofer
66
+ uses : chabad360/htmlproofer@master
67
+ with :
68
+ directory : " _build/html"
69
+ arguments : |
70
+ --ignore-files "/.+\/_static\/.+/,/genindex.html/"
71
+ --ignore-status-codes "404, 403, 429, 503"
0 commit comments