@@ -15,57 +15,57 @@ jobs:
1515 build-test-book :
1616 runs-on : ubuntu-latest
1717 steps :
18- - uses : actions/checkout@v4
18+ - uses : actions/checkout@v4
1919
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"
2424
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)"
3232
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-
4040
41- - name : Install dependencies
42- run : python3 -m pip install nox
41+ - name : Install dependencies
42+ run : python3 -m pip install nox
4343
44- - name : Build book
45- run : nox -s docs-test
44+ - name : Build book
45+ run : nox -s docs-test
4646
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/
5454
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- uses : peaceiris/actions-gh-pages@v3.8.0
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+ uses : peaceiris/actions-gh-pages@v3.8.0
60+ with :
61+ github_token : ${{ secrets.GITHUB_TOKEN }}
62+ publish_dir : ./_build/html
6363
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