Skip to content

Update CLConfig.py

Update CLConfig.py #41

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 tox
run: pip install tox
- name: Run tests
run: tox -e py${{ matrix.python-version }}