-
Notifications
You must be signed in to change notification settings - Fork 285
64 lines (59 loc) · 1.83 KB
/
run-mayavi-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
name: Tests
concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.type }}
cancel-in-progress: true
on:
pull_request
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8']
qt-api: ['pyqt5']
include:
# Should run 3.11 once the traits bug goes away
- python-version: '3.10'
qt-api: 'pyqt6'
os: ubuntu-latest
- python-version: '3.10'
qt-api: 'pyside6'
os: ubuntu-latest
- python-version: '3.10'
qt-api: 'pyside6'
os: windows-latest
- python-version: '3.10'
qt-api: 'pyside6'
os: macos-latest
fail-fast: false
defaults:
run:
shell: bash -e {0}
timeout-minutes: 30 # these usually take < 8 minutes
runs-on: ${{ matrix.os }}
env:
ETS_TOOLKIT: qt4
QT_API: ${{ matrix.qt-api }}
TVTK_VERBOSE: 'true'
VTK_PARSER_VERBOSE: 'true'
steps:
- uses: actions/checkout@v2
- name: Install Linux packages for Qt5/Qt6 support and start Xvfb
uses: pyvista/setup-headless-display-action@main
with:
qt: true
if: startsWith(matrix.os, 'ubuntu')
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade ${{ matrix.qt-api }} numpy vtk pillow pytest traits pyface traitsui
- name: Install mayavi and tvtk
run: python -um pip install -ve .[app]
- name: Test Mayavi package
run: pytest -v mayavi
- name: Test tvtk package
run: pytest -sv tvtk