-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (71 loc) · 2.11 KB
/
local.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
name: Local Testing
on: # yamllint disable-line rule:truthy
pull_request:
workflow_dispatch:
schedule:
- cron: "0 4 1 * *"
push:
tags:
- "*"
branches:
- main
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [macos-14, macos-13, ubuntu-latest, ubuntu-20.04, windows-2019, windows-2022]
qt: [""]
include:
- os: ubuntu-latest
qt: "pyqt5"
- os: ubuntu-latest
qt: "pyqt6"
- os: windows-latest
qt: "pyqt6"
- os: ubuntu-latest
qt: "pyside6"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Test Action
uses: ./
with:
qt: ${{ matrix.qt != '' }}
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install pyvista
- run: python tests/test_pyvista.py
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.qt }}-sphere
path: sphere.png
if-no-files-found: error
- name: Second test of PyVista
run: python -c "import pyvista;pyvista.Cube().plot(screenshot='${{ matrix.os }}-${{ matrix.qt }}-cube.png')"
- name: Test Qt
if: matrix.qt != ''
run: |
set -eo pipefail
pip install ${{ matrix.qt }} matplotlib qtpy
QT_DEBUG_PLUGINS=1 LIBGL_DEBUG=verbose python tests/test_qt.py
shell: bash
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-${{ matrix.qt }}-cube
path: ${{ matrix.os }}-${{ matrix.qt }}-cube.png
if-no-files-found: error
- name: Test Vispy Qt
if: matrix.qt != ''
run: |
pip install vispy pillow pyopengl
python tests/test_vispy_qt.py
env:
MATRIX_OS: ${{ matrix.os }}
MATRIX_QT: ${{ matrix.qt }}
- uses: actions/upload-artifact@v4
if: matrix.qt != ''
with:
name: ${{ matrix.os }}-${{ matrix.qt }}-vispy-volume
path: ${{ matrix.os }}-${{ matrix.qt }}-vispy-volume.png