Skip to content

Run the pygfx test suite as part of CI #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,53 @@ jobs:
run: |
pytest -v tests --cov=pylinalg --cov-report=term-missing

test-pygfx-builds:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Test pygfx release
os: ubuntu-latest
ref: refs/tags/v0.7.0
pyversion: '3.12'
- name: Test pygfx main
os: ubuntu-latest
ref: refs/heads/main
pyversion: '3.12'
steps:
- uses: actions/checkout@v4
with:
path: pylinalg
- uses: actions/checkout@v4
with:
repository: pygfx/pygfx
path: pygfx
ref: ${{ matrix.ref }}
- name: Set up Python ${{ matrix.pyversion }}
uses: actions/setup-python@v5
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-dev libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
- name: Install package and dev dependencies
run: |
python -m pip install --upgrade pip
cd pygfx
pip install .[tests]
rm -r pygfx
cd ../pylinalg
pip install .
rm -r pylinalg
- name: Unit tests
run: |
cd pygfx
pytest -v --ignore=tests/utils/test_load.py tests

release-build:
name: Build release on ubuntu-latest
runs-on: ubuntu-latest
Expand Down