Add testing for doc images generated by sphinx build #3164
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: VTK Master Testing | |
on: | |
pull_request: | |
push: | |
branches: | |
# To resolve issues on VTK master and test, use this branch name pattern | |
- "maint/vtk-master*" | |
workflow_dispatch: | |
schedule: | |
- cron: "0 4 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
ALLOW_PLOTTING: true | |
SHELLOPTS: "errexit:pipefail" | |
jobs: | |
VTK-master: | |
# only for pull requests, run only when 'vtk_master' label exists | |
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'vtk-master') }} | |
name: Linux VTK Master Testing | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
cache-dependency-path: requirements_test.txt | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.local/share/pyvista/examples | |
key: Examples-1-${{ hashFiles('*') }} | |
restore-keys: | | |
Examples-1- | |
- name: Install pyvista | |
run: pip install . --no-deps | |
- name: Install Testing Requirements | |
run: pip install -r requirements_test.txt | |
- name: Set up VTK with OSMesa | |
run: | | |
pip uninstall vtk -y | |
pip install vtk_osmesa --pre --no-cache --extra-index-url https://wheels.vtk.org | |
- name: Software Report | |
run: | | |
python -c "import pyvista; print(pyvista.Report()); from pyvista import examples; print('User data path:', examples.USER_DATA_PATH)" | |
which python | |
pip list | |
pip show vtk_osmesa | |
- name: Unit Testing | |
run: pytest -v tests/ --fail_extra_image_cache |