Skip to content

chore(deps): bump the github-actions group with 4 updates #36

chore(deps): bump the github-actions group with 4 updates

chore(deps): bump the github-actions group with 4 updates #36

name: Build project with standard clang compiler
on:
pull_request:
push:
branches: [master]
permissions: read-all
jobs:
build-with-standard-clang:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
numpy_version: ["'numpy>=2'"]
env:
COMPILER_ROOT: /usr/bin
defaults:
run:
shell: bash -el {0}
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
with:
access_token: ${{ github.token }}
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang
- name: Setup Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Install mkl_random dependencies
run: |
pip install meson-python ninja cmake cython mkl-devel
pip install ${{ matrix.numpy_version }}
- name: Build mkl_random
run: |
export CC=${{ env.COMPILER_ROOT }}/clang
export CXX=${{ env.COMPILER_ROOT }}/clang++
pip install -e . --no-build-isolation --no-deps --verbose
- name: Run mkl_random tests
run: |
pip install pytest
python -m pytest -sv --pyargs mkl_random