Skip to content

ci: gate publish on cross-platform tests; fix GPU + resource scripts (re-target main) #6

ci: gate publish on cross-platform tests; fix GPU + resource scripts (re-target main)

ci: gate publish on cross-platform tests; fix GPU + resource scripts (re-target main) #6

Workflow file for this run

name: Tests
on:
push:
branches: [main, master]
tags: ['v*']
pull_request:
branches: [main, master]
workflow_call:
jobs:
test:
name: ${{ matrix.os }} / Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13"]
env:
# Headless Qt — otherwise PyQt6 tries to talk to a display
QT_QPA_PLATFORM: offscreen
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
- name: Install Qt system libraries (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libegl1 libxkbcommon-x11-0 libdbus-1-3 libxcb-cursor0 \
libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 \
libxcb-render-util0 libxcb-shape0 libxcb-xinerama0 libxcb-xkb1
- name: Install PyQt6 (macOS — pyproject.toml excludes it on Darwin)
if: runner.os == 'macOS'
run: python -m pip install "PyQt6>=6.7.0"
- name: Install package
run: |
python -m pip install --upgrade pip
pip install .
- name: Run unit tests
run: python -m unittest discover -s tests -v