-
Notifications
You must be signed in to change notification settings - Fork 55
76 lines (66 loc) · 2.17 KB
/
run-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Run test suite for Qt and wxPython
on: [pull_request, workflow_dispatch]
env:
PYTHONUNBUFFERED: 1
jobs:
tests-qt:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.8', '3.10', '3.11']
qt-api: ['pyqt5', 'pyside2', 'pyside6']
exclude:
- python-version: '3.11'
qt-api: 'pyside2'
fail-fast: false
env:
ETS_TOOLKIT: qt
EXCLUDE_TESTS: wx
runs-on: ${{ matrix.os }}
timeout-minutes: 20 # should be plenty, it's usually < 5
steps:
- name: Check out the target commit
uses: actions/checkout@v3
- name: Install Qt dependencies
uses: ./.github/actions/install-qt-support
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and local packages
run: |
python -m pip install ".[${{ matrix.qt-api }},numpy,pillow,test,traitsui]"
- name: Create clean test directory
run: |
mkdir testdir
- name: Run the test suite (Linux)
run: cd testdir && xvfb-run -a python -X faulthandler -m unittest discover -v pyface
if: matrix.os == 'ubuntu-latest'
- name: Run the test suite (Windows/macOS)
run: cd testdir && python -X faulthandler -m unittest discover -v pyface
if: matrix.os != 'ubuntu-latest'
tests-wx:
strategy:
matrix:
os: [windows-latest]
python-version: ['3.8', '3.10']
fail-fast: false
env:
ETS_TOOLKIT: wx
EXCLUDE_TESTS: qt
runs-on: ${{ matrix.os }}
steps:
- name: Check out the target commit
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies and local packages
run: |
python -m pip install ".[wx,test,traitsui]"
- name: Create clean test directory
run: |
mkdir testdir
- name: Run the test suite (Windows/macOS)
run: cd testdir && python -X faulthandler -m unittest discover -v pyface