diff --git a/.github/workflows/build_docs.yml b/.github/workflows/build_docs.yml index 64d8897ae..65d8ea0d9 100644 --- a/.github/workflows/build_docs.yml +++ b/.github/workflows/build_docs.yml @@ -53,14 +53,18 @@ jobs: python -c 'import napari.layers; print(napari.layers.__doc__)' - name: Build Docs - uses: aganders3/headless-gui@v1 + uses: aganders3/headless-gui@v2 env: GOOGLE_CALENDAR_ID: ${{ secrets.GOOGLE_CALENDAR_ID }} GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }} PIP_CONSTRAINT: ${{ github.workspace }}/napari/resources/constraints/constraints_py3.10_docs.txt with: run: make -C docs docs - + # skipping setup stops the action from running the default (tiling) window manager + # the window manager is not necessary for docs builds at this time and it was causing + # problems with screenshots (https://github.com/napari/docs/issues/285) + linux-setup: "echo 'skip setup'" + linux-teardown: "echo 'skip teardown'" - name: Upload artifact uses: actions/upload-artifact@v3 diff --git a/.github/workflows/deploy_docs.yml b/.github/workflows/deploy_docs.yml index 34ba64ac4..66eaf0480 100644 --- a/.github/workflows/deploy_docs.yml +++ b/.github/workflows/deploy_docs.yml @@ -54,7 +54,7 @@ jobs: python -c 'import napari.layers; print(napari.layers.__doc__)' - name: Build Docs - uses: aganders3/headless-gui@v1 + uses: aganders3/headless-gui@v2 env: GOOGLE_CALENDAR_ID: ${{ secrets.GOOGLE_CALENDAR_ID }} GOOGLE_CALENDAR_API_KEY: ${{ secrets.GOOGLE_CALENDAR_API_KEY }} @@ -63,6 +63,11 @@ jobs: # the napari-docs repo is cloned into a docs/ folder, hence the # invocation below. Locally, you should simply run make docs run: make -C docs docs GALLERY_PATH=../examples/ + # skipping setup stops the action from running the default (tiling) window manager + # the window manager is not necessary for docs builds at this time and it was causing + # problems with screenshots (https://github.com/napari/docs/issues/285) + linux-setup: "echo 'skip setup'" + linux-teardown: "echo 'skip teardown'" - name: Deploy Docs uses: peaceiris/actions-gh-pages@v3