Fix #15
Workflow file for this run
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 Numba PyOMP | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
#os: [ubuntu-latest, macOS-latest] | |
name: Build Numba PyOMP for platform ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -el {0} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Create conda environment | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: false | |
auto-activate-base: false | |
show-channel-urls: true | |
- name: Build Numba PyOMP | |
run: | | |
conda create -c python-for-hpc -c conda-forge --override-channels -n test-numba-pyomp llvmdev llvmlite numpy=1.24 python=3.10 | |
conda init | |
conda activate test-numba-pyomp | |
pushd ${GITHUB_WORKSPACE} | |
MACOSX_DEPLOYMENT_TARGET=10.10 python setup.py build_ext build install --single-version-externally-managed --record=record.txt | |
mkdir -p ${GITHUB_WORKSPACE}/bin | |
mkdir -p ${GITHUB_WORKSPACE}/lib | |
cp ${CONDA_PREFIX}/bin/clang ${GITHUB_WORKSPACE}/bin | |
cp ${CONDA_PREFIX}/bin/opt ${GITHUB_WORKSPACE}/bin | |
cp ${CONDA_PREFIX}/bin/llc ${GITHUB_WORKSPACE}/bin | |
cp ${CONDA_PREFIX}/bin/llvm-link ${GITHUB_WORKSPACE}/bin | |
cp ${CONDA_PREFIX}/lib/lib*omp* ${GITHUB_WORKSPACE}/lib | |
popd | |
- name: Setup tmate session | |
uses: mxschmitt/action-tmate@v3 | |
- name: Test Numba PyOMP on CPU | |
env: | |
TEST_DEVICES: 0 | |
RUN_TARGET: 0 | |
run: | | |
ls | |
conda init | |
conda activate test-numba-pyomp | |
numba -h | |
numba -s | |
python -m numba.runtests -v -- numba.tests.test_openmp |