Debian Codegraph @

.github/workflows/selftests.yml

raw
1 name: Run test suite
2
3 on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main ]
8
9 jobs:
10 tests:
11 runs-on: ubuntu-latest
12 timeout-minutes: 20
13 strategy:
14 matrix:
15 python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
16 matplotlib: ["3.6", "3.7", "3.8", "3.9", "3.10"]
17 pyqt: ["PyQt5", "PySide2", "PyQt6", "PySide6"]
18 exclude:
19 - python: "3.11"
20 matplotlib: "3.6"
21 pyqt: "PySide2"
22 - python: "3.11"
23 matplotlib: "3.7"
24 pyqt: "PySide2"
25 - python: "3.12"
26 pyqt: "PySide2"
27 - python: "3.13"
28 pyqt: "PySide2"
29 - python: "3.14"
30 pyqt: "PySide2"
31 - python: "3.14"
32 matplotlib: "3.6"
33 - python: "3.14"
34 matplotlib: "3.7"
35 - python: "3.14"
36 matplotlib: "3.8"
37 - python: "3.14"
38 matplotlib: "3.9"
39 fail-fast: false
40
41 env:
42 MATPLOTLIB_VERSION: ${{ matrix.matplotlib }}
43 PYQT: ${{ matrix.pyqt }}
44 XDG_RUNTIME_DIR: "/tmp/runtime-runner"
45
46 steps:
47 - name: Check out repository code
48 uses: actions/checkout@v6
49 - name: Set up Python ${{ matrix.python }}
50 uses: actions/setup-python@v6
51 with:
52 python-version: ${{ matrix.python }}
53 - name: Install dependencies
54 run: |
55 sudo apt-get install -y xvfb libxkbcommon-x11-0 libxcb-icccm4 libxcb-shape0 libxcb-cursor0 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xinput0 libxcb-xfixes0 libegl1 libfreetype-dev
56 [[ "$MATPLOTLIB_VERSION" == "3.5" ]] || [[ "$MATPLOTLIB_VERSION" == "3.6" ]] || [[ "$MATPLOTLIB_VERSION" == "3.7" ]] && pip install "numpy<2"
57 pip install setuptools QtPy ${PYQT} "matplotlib==${MATPLOTLIB_VERSION}.*"
58 - name: Run tests
59 uses: tohojo/xvfb-action@c4a66ed13f7e1b1e4cce101bd5cc1bb91e734f6a
60 with:
61 run: make test_long