fix more numpy dtypes (#672) #62
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 Binary Wheels | |
# Uncomment here for testing and comment out schedule below. | |
# on: | |
# push: | |
# branches: [ master ] | |
# pull_request: | |
# branches: [ master ] | |
# Uncomment here for production and comment out push / PR above. | |
# on: | |
# schedule: | |
# - cron: '0 4 * * *' | |
jobs: | |
sdist: | |
name: Python source dist | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Pull Dependency Image | |
run: docker pull hpc4cmb/toast-deps-py37:latest | |
- name: Create dist directory | |
run: mkdir -p dist && rm -f dist/* | |
- name: Build source package | |
run: docker run -v "$(pwd)":/home/toast hpc4cmb/toast-deps-py37:latest /home/toast/wheels/build_sdist.sh | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: sdist | |
path: ./dist/toast*.gz | |
wheels-py37: | |
name: Python 3.7 wheels for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
env: | |
CIBW_BUILD: cp37-macosx_x86_64 cp37-manylinux_x86_64 | |
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010 | |
CIBW_MANYLINUX_I686_IMAGE: manylinux2010 | |
CIBW_BUILD_VERBOSITY: 3 | |
CIBW_ENVIRONMENT_LINUX: "PATH=/usr/lib64/mpich-3.2/bin:${PATH} TOAST_BUILD_BLAS_LIBRARIES='-lopenblas -fopenmp -lm -lgfortran' TOAST_BUILD_LAPACK_LIBRARIES='-lopenblas -fopenmp -lm -lgfortran' TOAST_BUILD_CMAKE_VERBOSE_MAKEFILE=ON" | |
CIBW_ENVIRONMENT_MACOS: | |
CIBW_BEFORE_BUILD_LINUX: ./wheels/install_deps_linux.sh | |
CIBW_BEFORE_BUILD_MACOS: ./wheels/install_deps_osx.sh | |
CIBW_BEFORE_TEST: pip3 install numpy && pip3 install mpi4py | |
CIBW_TEST_COMMAND: export OMP_NUM_THREADS=2; python -c 'import toast.tests; toast.tests.run()' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
name: Install Python | |
with: | |
python-version: '3.7' | |
- name: Install cibuildwheel | |
run: | | |
python -m pip install cibuildwheel==2.1.2 | |
- name: Build wheel | |
run: | | |
python -m cibuildwheel --output-dir wheelhouse | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: wheels | |
path: ./wheelhouse/toast*.whl | |
wheels-py38: | |
name: Python 3.8 wheels for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
env: | |
CIBW_BUILD: cp38-macosx_x86_64 cp38-manylinux_x86_64 | |
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010 | |
CIBW_MANYLINUX_I686_IMAGE: manylinux2010 | |
CIBW_BUILD_VERBOSITY: 3 | |
CIBW_ENVIRONMENT_LINUX: "PATH=/usr/lib64/mpich-3.2/bin:${PATH} TOAST_BUILD_BLAS_LIBRARIES='-lopenblas -fopenmp -lm -lgfortran' TOAST_BUILD_LAPACK_LIBRARIES='-lopenblas -fopenmp -lm -lgfortran' TOAST_BUILD_CMAKE_VERBOSE_MAKEFILE=ON" | |
CIBW_ENVIRONMENT_MACOS: | |
CIBW_BEFORE_BUILD_LINUX: ./wheels/install_deps_linux.sh | |
CIBW_BEFORE_BUILD_MACOS: ./wheels/install_deps_osx.sh | |
CIBW_BEFORE_TEST: pip3 install numpy && pip3 install mpi4py | |
CIBW_TEST_COMMAND: export OMP_NUM_THREADS=2; python -c 'import toast.tests; toast.tests.run()' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
name: Install Python | |
with: | |
python-version: '3.7' | |
- name: Install cibuildwheel | |
run: | | |
python -m pip install cibuildwheel==2.1.2 | |
- name: Build wheel | |
run: | | |
python -m cibuildwheel --output-dir wheelhouse | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: wheels | |
path: ./wheelhouse/toast*.whl | |
wheels-py39: | |
name: Python 3.9 wheels for ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
env: | |
CIBW_BUILD: cp39-macosx_x86_64 cp39-manylinux_x86_64 | |
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010 | |
CIBW_MANYLINUX_I686_IMAGE: manylinux2010 | |
CIBW_BUILD_VERBOSITY: 3 | |
CIBW_ENVIRONMENT_LINUX: "PATH=/usr/lib64/mpich-3.2/bin:${PATH} TOAST_BUILD_BLAS_LIBRARIES='-lopenblas -fopenmp -lm -lgfortran' TOAST_BUILD_LAPACK_LIBRARIES='-lopenblas -fopenmp -lm -lgfortran' TOAST_BUILD_CMAKE_VERBOSE_MAKEFILE=ON" | |
CIBW_ENVIRONMENT_MACOS: | |
CIBW_BEFORE_BUILD_LINUX: ./wheels/install_deps_linux.sh | |
CIBW_BEFORE_BUILD_MACOS: ./wheels/install_deps_osx.sh | |
CIBW_BEFORE_TEST: pip3 install numpy && pip3 install mpi4py | |
CIBW_TEST_COMMAND: export OMP_NUM_THREADS=2; python -c 'import toast.tests; toast.tests.run()' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
name: Install Python | |
with: | |
python-version: '3.7' | |
- name: Install cibuildwheel | |
run: | | |
python -m pip install cibuildwheel==2.1.2 | |
- name: Build wheel | |
run: | | |
python -m cibuildwheel --output-dir wheelhouse | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: wheels | |
path: ./wheelhouse/toast*.whl |