File tree Expand file tree Collapse file tree 2 files changed +46
-1
lines changed
Expand file tree Collapse file tree 2 files changed +46
-1
lines changed Original file line number Diff line number Diff line change 2222 strategy :
2323 fail-fast : false
2424 matrix :
25- python-version : ["3.9", "3.11", "3.13", "3. 14"]
25+ python-version : ["3.9", "3.11", "3.14"]
2626
2727 steps :
2828 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 1+ # This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+ # Inspired from https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
5+
6+ name : Build, install and test
7+
8+ on :
9+ push :
10+ branches : [ "master", "develop", "release" ]
11+ pull_request :
12+ branches : [ "master", "develop", "release" ]
13+ workflow_call :
14+
15+ jobs :
16+ build :
17+
18+ env :
19+ DISPLAY : ' :99.0'
20+
21+ runs-on : ubuntu-latest
22+ strategy :
23+ fail-fast : false
24+ matrix :
25+ python-version : ["3.9", "3.11", "3.14"]
26+
27+ steps :
28+ - uses : actions/checkout@v4
29+ - name : Set up Python ${{ matrix.python-version }}
30+ uses : actions/setup-python@v5
31+ with :
32+ python-version : ${{ matrix.python-version }}
33+ - name : Install dependencies
34+ run : |
35+ sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils
36+ /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX
37+ python -m pip install --upgrade pip
38+ python -m pip install ruff pytest
39+ pip install PyQt6
40+ pip install .
41+ - name : Lint with Ruff
42+ run : ruff check --output-format=github guidata
43+ - name : Test with pytest
44+ run : |
45+ pytest
You can’t perform that action at this time.
0 commit comments