Bump actions/checkout from 4 to 6 #86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow targets stable released dependencies from EDM. | |
| # Note that some packages may not actually be installed from EDM but from | |
| # PyPI, see etstool.py implementations. | |
| name: Build docs with EDM | |
| on: [pull_request, workflow_dispatch] | |
| env: | |
| INSTALL_EDM_VERSION: 4.1.1 | |
| QT_MAC_WANTS_LAYER: 1 | |
| jobs: | |
| # Build docs using EDM packages | |
| docs-with-edm: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| toolkit: ['pyside6'] | |
| timeout-minutes: 20 # should be plenty, it's usually < 5 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Qt dependencies | |
| uses: ./.github/actions/install-qt-support | |
| if: matrix.toolkit != 'wx' | |
| - name: Cache EDM packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache | |
| key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ hashFiles('etstool.py') }} | |
| - name: Setup EDM | |
| uses: enthought/setup-edm-action@v4.1 | |
| with: | |
| edm-version: ${{ env.INSTALL_EDM_VERSION }} | |
| - name: Install click to the default EDM environment | |
| run: edm install -y wheel click coverage | |
| - name: Install test environment | |
| run: edm run -- python etstool.py install --toolkit=${{ matrix.toolkit }} | |
| - name: Build docs | |
| run: xvfb-run -a edm run -- python etstool.py docs --toolkit=${{ matrix.toolkit }} | |
| - name: Archive HTML docs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: html-doc-bundle | |
| path: docs/build/html | |
| # don't need these kept for long | |
| retention-days: 7 |