Skip to content

Added additional debugging output to pyface/qt/__init__.py. #18

Added additional debugging output to pyface/qt/__init__.py.

Added additional debugging output to pyface/qt/__init__.py. #18

# 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: 3.5.0
QT_MAC_WANTS_LAYER: 1
jobs:
# Build docs using EDM packages
docs-with-edm:
strategy:
matrix:
os: [ubuntu-latest]
toolkit: ['pyside6']
fail-fast: false
timeout-minutes: 20 # should be plenty, it's usually < 5
runs-on: ${{ matrix.os }}
env:
# Set root directory, mainly for Windows, so that the EDM Python
# environment lives in the same drive as the cloned source. Otherwise
# 'pip install' raises an error while trying to compute
# relative path between the site-packages and the source directory.
EDM_ROOT_DIRECTORY: ${{ github.workspace }}/.edm
steps:
- uses: actions/checkout@v3
- name: Install Qt dependencies
uses: ./.github/actions/install-qt-support
if: matrix.toolkit != 'wx'
- name: Cache EDM packages
uses: actions/cache@v3
with:
path: ~/.cache
key: ${{ runner.os }}-${{ matrix.toolkit }}-${{ hashFiles('etstool.py') }}
- name: Setup EDM
uses: enthought/setup-edm-action@v2
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@v3
with:
name: html-doc-bundle
path: docs/build/html
# don't need these kept for long
retention-days: 7