Fix build issues for chaco #63
Workflow file for this run
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 installs dependencies from main branch | |
| name: Test with pip | |
| on: | |
| pull_request: | |
| # Make it possible to manually trigger the workflow | |
| workflow_dispatch: | |
| jobs: | |
| test-qt: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | |
| toolkit: ['pyside2', 'pyside6', 'pyqt5', 'wx', 'null'] | |
| kiva-backend: ['image'] | |
| python-version: ['3.10', '3.11'] | |
| exclude: | |
| # No PySide2 wheels available for Python 3.11 | |
| - toolkit: 'pyside2' | |
| python-version: '3.11' | |
| # No PyQt5 wheels available for Python 3.11 | |
| - toolkit: 'pyqt5' | |
| python-version: '3.11' | |
| # No PySide2 wheels for macos-latest | |
| - os: 'macos-latest' | |
| toolkit: 'pyside2' | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Set ETS_TOOLKIT | |
| uses: ./.github/actions/ets_toolkit | |
| with: | |
| toolkit: ${{ matrix.toolkit }} | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip wheel Cython | |
| - name: Install wxdependencies for Linux | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libgtk-3-dev | |
| if: matrix.os == 'ubuntu-latest' && matrix.toolkit == 'wx' | |
| - name: Install Qt dependencies on Linux | |
| uses: ./.github/actions/install-qt-support | |
| if: matrix.os == 'ubuntu-latest' && startsWith(matrix.toolkit, 'py') | |
| - name: Install local packages | |
| run: pip install ".[tests,${{ matrix.toolkit }}]" | |
| - name: Sanity check package version | |
| run: pip list | |
| - name: Run chaco test suite (Linux) | |
| env: | |
| PYTHONFAULTHANDLER: 1 | |
| # kiva agg requires at least 15-bit color depth. | |
| run: xvfb-run -a --server-args="-screen 0 1024x768x24" python -m unittest discover -v chaco | |
| if: matrix.os == 'ubuntu-latest' | |
| working-directory: ${{ runner.temp }} | |
| - name: Run enable test suite (not Linux) | |
| env: | |
| PYTHONFAULTHANDLER: 1 | |
| run: python -m unittest discover -v chaco | |
| if: matrix.os != 'ubuntu-latest' | |
| working-directory: ${{ runner.temp }} |