Skip to content

Enable free threaded python support #33

Enable free threaded python support

Enable free threaded python support #33

Workflow file for this run

name: Editable build using pip and pre-release NumPy
on:
push:
branches:
- master
pull_request:
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
strategy:
matrix:
python: ["3.10", "3.11", "3.12", "3.13"]
use_pre: ["", "--pre"]
include:
- python: "3.14"
python_spec: "3.14.* *_cp314"
use_pre: ""
- python: "3.14"
python_spec: "3.14.* *_cp314"
use_pre: "--pre"
- python: "3.14"
python_spec: "3.14.* *_cp314t"
use_pre: ""
- python: "3.14"
python_spec: "3.14.* *_cp314t"
use_pre: "--pre"
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@fc2d68f6413eb2d87b895e92f8584b5b94a10167 # v3.3.0
with:
miniforge-version: latest
channels: conda-forge
activate-environment: test
python-version: ${{ matrix.python }}
- name: Install MKL
run: |
conda install mkl-devel "python=${{ matrix.python_spec || matrix.python }}"
- name: Build with pip
run: |
pip install --no-cache-dir meson-python ninja cmake "cython>=3.1.0"
pip install --no-cache-dir numpy ${{ matrix.use_pre }}
pip install -e . --no-build-isolation --no-deps --verbose
pip install --no-cache-dir pytest
pip list
python -m pytest -v mkl_random/tests