Refactor autogui selection to take imported backends into account better #256
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: Screenshots | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
screenshots: | |
name: Regenerate | |
timeout-minutes: 10 | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install llvmpipe and lavapipe for offscreen canvas | |
run: | | |
sudo apt-get update -y -qq | |
sudo add-apt-repository ppa:oibaf/graphics-drivers -y | |
sudo apt-get update -y -qq | |
sudo apt install -y libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers | |
- name: Install dev dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -U -r dev-requirements.txt | |
python download-wgpu-native.py | |
pip install -e . | |
- name: Regenerate screenshots | |
run: | | |
pytest -v --regenerate-screenshots -k test_examples_screenshots examples | |
- uses: actions/upload-artifact@v2 | |
if: always() | |
with: | |
name: screenshots | |
path: examples/screenshots |