v0.2.5 #14
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
| name: Cross-Platform Tests | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| tests: | |
| name: ${{ matrix.os }} / Python ${{ matrix.python-version }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| python-version: "3.8" | |
| - os: ubuntu-latest | |
| python-version: "3.12" | |
| - os: windows-latest | |
| python-version: "3.8" | |
| - os: windows-latest | |
| python-version: "3.12" | |
| - os: macos-latest # arm64 — modern Python only | |
| python-version: "3.12" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| # Qt needs X/EGL libs to load the offscreen platform plugin; | |
| # rlPyCairo (via the [rich] extra) needs libcairo2-dev + pkg-config | |
| # since pycairo has no manylinux wheels and is built from source. | |
| # macOS and Windows ship prebuilt wheels for both. | |
| - name: Install system libraries (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libegl1 libxkbcommon0 libdbus-1-3 libfontconfig1 \ | |
| libxcb-cursor0 libxkbcommon-x11-0 libxcb-icccm4 \ | |
| libxcb-image0 libxcb-keysyms1 libxcb-randr0 \ | |
| libxcb-render-util0 libxcb-shape0 libxcb-sync1 \ | |
| libxcb-xfixes0 libxcb-xinerama0 libxcb-xkb1 \ | |
| libcairo2-dev pkg-config | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[rich,web,dev,dev-gui]" | |
| - name: Run tests | |
| env: | |
| QT_QPA_PLATFORM: offscreen | |
| QT_API: pyside6 | |
| run: pytest tests/ -v |