Skip to content

Update ci.yaml

Update ci.yaml #47

Workflow file for this run

name: CI Pipeline
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
# macos-13 is the last runner with an OpenCL device
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
python-version: ["3.9", "3.12"]
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
if: runner.os == 'macOS'
run: |
brew install clinfo
clinfo || echo "clinfo error"
ls -l /System/Library/Frameworks/OpenCL.framework || echo "OpenCL framework not found"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name : Install dependencies
run: |
python -m pip install --upgrade pip
python -I -m pip install setuptools>=40.8.0 wheel pytest
python -m pip freeze --all
python -m pip install -r requirements.txt
python -m pip freeze --all
- name: Run tests
env:
QT_QPA_PLATFORM: offscreen
PTO_DEVICE_INDEX: 0
PTO_N_WORK_UNITS: 128
PTO_MAX_MEMORY_MB: 1024
run: |
python -m pytest -v