build: update ci #28
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Pipeline | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-13] | |
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 | |
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 }} |