Skip to content

fix image_widget_grid git LFS pointer #1364

fix image_widget_grid git LFS pointer

fix image_widget_grid git LFS pointer #1364

Workflow file for this run

name: Screenshots
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- ready_for_review
jobs:
screenshots:
name: Regenerate
runs-on: ubuntu-latest
timeout-minutes: 10
if: ${{ !github.event.pull_request.draft }}
strategy:
fail-fast: false
matrix:
imgui_dep: ["imgui", ""]
steps:
- uses: actions/checkout@v4
with:
lfs: true
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install llvmpipe and lavapipe for offscreen canvas
run: |
sudo apt-get update -y -qq
sudo apt-get install --no-install-recommends -y ffmpeg libegl1-mesa-dev libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
- name: Install pygx from main
run: |
python -m pip install --upgrade pip setuptools
# remove pygfx from install_requires, we install using pygfx@main
sed -i "/pygfx/d" ./pyproject.toml
pip install git+https://github.com/pygfx/pygfx.git@main
- name: Install fastplotlib
run: |
# create string with one of: tests,imgui,notebook; test,imgui; test,notebook ; tests
# sed removes trailing comma
# install fastplotlib with with or without imgui depending on build matrix
pip install -e ".[$(echo "tests,notebook,${{ matrix.imgui_dep }}" | sed -e "s/,\+/,/g" -e "s/,$//")]"
- name: Show wgpu backend
run:
python -c "from examples.tests.testutils import wgpu_backend; print(wgpu_backend)"
- name: Generate screenshots
env:
PYGFX_EXPECT_LAVAPIPE: true
run: |
# regenerate screenshots
RENDERCANVAS_FORCE_OFFSCREEN=1 REGENERATE_SCREENSHOTS=1 pytest -v examples
- name: Generate screenshots notebook, exclude image widget
env:
PYGFX_EXPECT_LAVAPIPE: true
run: FASTPLOTLIB_NB_TESTS=1 REGENERATE_SCREENSHOTS=1 pytest --nbmake $(find ./examples/notebooks/ -maxdepth 1 -type f -name "*.ipynb" ! -name "image_widget*.ipynb" -print | xargs)
- name: Generate screenshots notebook, include image widget
if: ${{ matrix.imgui_dep == 'imgui' }}
env:
PYGFX_EXPECT_LAVAPIPE: true
run: FASTPLOTLIB_NB_TESTS=1 REGENERATE_SCREENSHOTS=1 pytest --nbmake $(find ./examples/notebooks/ -maxdepth 1 -type f -name "image_widget*.ipynb" -print | xargs)
- uses: actions/upload-artifact@v4
if: always()
with:
name: screenshots-${{ matrix.imgui_dep }}
path: |
examples/screenshots/
examples/notebooks/screenshots/
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy