name: tests on: push: branches: [master] pull_request: jobs: pytest: runs-on: docker container: image: debian:bookworm steps: - uses: actions/checkout@v4 - name: Install dependencies run: | apt-get update # PyGObject + GTK introspection are needed because the modules under # test import gi.repository at import time; the tests themselves run # headless (no display, no encoding). apt-get install -y --no-install-recommends \ python3 python3-pip python3-gi gir1.2-gtk-3.0 \ python3-cairo python3-gi-cairo pip3 install --break-system-packages pytest - name: Run test suite run: python3 -m pytest