Skip to content

Update ci.yaml

Update ci.yaml #24

Workflow file for this run

name: CI Pipeline
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.12"] # ["3.9", "3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Linux packages for Qt5/Qt6 support and start Xvfb (Linux only)
if: runner.os == 'Linux'
uses: pyvista/setup-headless-display-action@v3
with:
qt: true
- name: Install OpenCL dependencies (Linux only)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y pocl-opencl-icd ocl-icd-opencl-dev gcc clinfo
clinfo
- name: Verify OpenCL on macOS (use Apple's OpenCL framework)
if: runner.os == 'macOS'
run: |
clinfo || echo "Ignoring clinfo errors on macOS"
ls -l /System/Library/Frameworks/OpenCL.framework || echo "OpenCL framework missing"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox
- name: Run tests
run: tox -e py${{ matrix.python-version }}