Skip to content

Add skeleton of wgpu-py #3

Add skeleton of wgpu-py

Add skeleton of wgpu-py #3

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main
jobs:
lint-build:
name: Test Linting
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -U black flake8 flake8-black pep8-naming
- name: Flake8
run: |
flake8 .
docs-build:
name: Test Docs
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dev dependencies
run: |
python -m pip install --upgrade pip
pip install -U -r dev-requirements.txt
- name: Build docs
run: |
cd docs
make html SPHINXOPTS="-W --keep-going"
test-examples-build:
name: Test Examples
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
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 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
pip install -e .
- name: Test examples
env:
EXPECT_LAVAPIPE: true
run: |
pytest -v examples
test-builds:
name: ${{ matrix.name }}
timeout-minutes: 5
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Test Linux py38
os: ubuntu-latest
pyversion: '3.8'
- name: Test Linux py39
os: ubuntu-latest
pyversion: '3.9'
- name: Test Linux py310
os: ubuntu-latest
pyversion: '3.10'
- name: Test Linux py311
os: ubuntu-latest
pyversion: '3.11'
- name: Test Linux py312
os: ubuntu-latest
pyversion: '3.12'
- name: Test Linux pypy3
os: ubuntu-latest
pyversion: 'pypy3.9'
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.pyversion }}
- name: Install llvmpipe and lavapipe for offscreen canvas
if: matrix.os == 'ubuntu-latest'
run: |
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
pip install -e .
- name: Unit tests
run: |
pytest -v tests
- name: Memory tests
run: |
pytest -v tests_mem