Bump pyvista/setup-headless-display-action from 1 to 2 in the actions group #91
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: 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 | |
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 |