Skip to content

${F2PY_INCLUDE_DIR}\fortranobject.c #299

${F2PY_INCLUDE_DIR}\fortranobject.c

${F2PY_INCLUDE_DIR}\fortranobject.c #299

name: Quick Wheel test
on:
# allows running workflows manually
workflow_dispatch:
pull_request:
branches:
- develop
paths-ignore:
- docs/**
push:
branches:
- scikit-build-core
paths-ignore:
- docs/**
jobs:
main:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- name: Additional Windows settings
if: matrix.os == 'windows-latest'
shell: bash -l {0}
run: |
choco install mingw
echo "CMAKE_GENERATOR=MinGW Makefiles" >> $GITHUB_ENV
- name: Additional macOS settings
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
shell: bash -l {0}
run: |
# hdf5 is needed for building tables
brew install gcc hdf5
# ISSUE: DYLD_LIBRARY_PATH for gcc is not set on Intel macOS
echo "DYLD_LIBRARY_PATH=/usr/local/opt/gcc/lib/gcc/current/:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
echo "MACOSX_DEPLOYMENT_TARGET=${{ matrix.os == 'macos-14' && '14.0' || '13.0' }}" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build wheels
shell: bash -l {0}
run: |
pip install build
python -m build --wheel
- name: Fix wheels for macOS
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
shell: bash -l {0}
run: |
pip install delocate
for whl in dist/*.whl; do
delocate-wheel -v $whl
done
- name: Install PyNE
shell: bash -l {0}
run: |
pip install dist/pyne*.whl
- name: Nuc data make
shell: bash -l {0}
run: |
nuc_data_make
- name: Test PyNE
shell: bash -l {0}
run: |
cd tests
pip install pytest
pytest -ra