Add vispy test #102
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |