55 branches :
66 - ' master'
77 - ' release/*'
8+ - ' staging'
9+ - ' trying'
810 tags :
911 - ' v*'
1012 pull_request :
1113
1214jobs :
13- build :
15+ builddocs :
1416
1517 runs-on : ${{ matrix.os }}
1618 strategy :
1719 matrix :
1820 os : [ubuntu-latest, windows-latest]
19- python-version : [3.7, 3.8, 3.9 ]
21+ python-version : [3.7, 3.9, "3.10" ]
2022 exclude :
21- - os : windows-latest
22- python-version : 3.8
2323 - os : windows-latest
2424 python-version : 3.9
25+ - os : windows-latest
26+ python-version : 3.10
27+ - os : ubuntu-latest
28+ python-version : 3.7
2529 env :
2630 DISPLAY : ' :99.0'
2731 OS : ${{ matrix.os }}
28- UPLOAD_TO_GHPAGES : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7 ' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
32+ UPLOAD_TO_GHPAGES : ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9 ' && github.event_name == 'push' && github.ref == 'refs/heads/master' }}
2933 steps :
30- - uses : actions/checkout@v2
34+ - uses : actions/checkout@v2.3.4
3135 with :
3236 fetch-depth : ' 0'
3337 # if we upload to ghpages we need the full
3438 # history to generate correct version info
3539 if : ${{ fromJSON(env.UPLOAD_TO_GHPAGES) }}
36- - uses : actions/checkout@v2
40+ - uses : actions/checkout@v2.3.4
3741 if : ${{ !fromJSON(env.UPLOAD_TO_GHPAGES) }}
3842 - name : setup ubuntu-latest xvfb
3943 uses : ./.github/actions/setup-ubuntu-latest-xvfb
@@ -42,19 +46,23 @@ jobs:
4246 run : sudo apt install pandoc
4347 if : runner.os == 'Linux'
4448 - name : Install pandoc on windows
45- uses : crazy-max/ghaction-chocolatey @v1.4.0
49+ uses : Wandalen/wretry.action @v1.0.12
4650 with :
47- args : install pandoc
51+ action : crazy-max/ghaction-chocolatey@v1.6.0
52+ with : |
53+ args: install pandoc
54+ attempt_limit : 5
55+ attempt_delay : 1000
4856 if : runner.os == 'Windows'
4957 - name : Set up Python ${{ matrix.python-version }}
50- uses : actions/setup-python@v2
58+ uses : actions/setup-python@v2.3.1
5159 with :
5260 python-version : ${{ matrix.python-version }}
5361 - name : prepare pip cache
5462 id : prepare-cache-pip
5563 uses : ./.github/actions/prepare-cache-pip
5664 - name : pip cache
57- uses : actions/cache@v2.1.4
65+ uses : actions/cache@v2.1.7
5866 with :
5967 path : ${{ steps.prepare-cache-pip.outputs.cache-dir }}
6068 key : ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('**/docs_requirements.txt') }}-${{ hashFiles('**/setup.cfg') }}
@@ -82,16 +90,17 @@ jobs:
8290 ./make.bat html
8391 if : runner.os == 'Windows'
8492 - name : Upload build docs
85- uses : actions/upload-artifact@v2
93+ uses : actions/upload-artifact@v2.3.1
8694 with :
8795 name : docs_${{ matrix.python-version }}_${{ matrix.os }}
8896 path : ${{ github.workspace }}/docs/_build/html
8997 - name : Deploy to gh pages
90- uses : JamesIves/github-pages-deploy-action@4.1.0
98+ uses : JamesIves/github-pages-deploy-action@v4.2.2
9199 with :
92100 branch : gh-pages
93101 folder : ${{ github.workspace }}/docs/_build/html
94102 clean : true
103+ single-commit : true
95104 git-config-email : " bot"
96105 git-config-name : " Documentation Bot"
97106 if : ${{ fromJSON(env.UPLOAD_TO_GHPAGES) }}
0 commit comments