Fix build issues for chaco #44
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'] | |
| 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 }} | |
| env: | |
| ETS_TOOLKIT: qt4.${{ matrix.kiva-backend }} | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip wheel | |
| - 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 }} |