Use pip to install pyopencl for all OSes #767
This file contains 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: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Free Disk Space (Ubuntu) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
uses: jlumbroso/free-disk-space@main | |
with: | |
haskell: false | |
large-packages: false | |
- name: setup apt dependencies for Linux | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt update | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install wheel setuptools | |
python -m pip install mako | |
python -m pip install numpy scipy matplotlib docutils pytest sphinx bumps==0.* unittest-xml-reporting tinycc siphash24 | |
python -m pip install pyopencl | |
- name: Test with pytest (only on Windows for now since PoCL is failing on Ubuntu) | |
env: | |
PYOPENCL_COMPILER_OUTPUT: 1 | |
SAS_OPENCL: none | |
run: | | |
# other CI uses the following, but `setup.py test` is a deprecated way | |
# of running tests | |
# python setup.py test --pytest-args -v | |
pytest -v | |
- name: check that the docs build (linux only) | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
env: | |
SAS_OPENCL: none | |
run: | | |
make -j 4 -C doc SPHINXOPTS="-W --keep-going -n" html | |
- name: Publish samodels docs | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'}} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sasmodels-docs-${{ matrix.os }}-${{ matrix.python-version }} | |
path: | | |
doc/_build/html | |
if-no-files-found: error |