Skip to content

Create a new method to return the final state vector array instead of wrapping it #704

Create a new method to return the final state vector array instead of wrapping it

Create a new method to return the final state vector array instead of wrapping it #704

Workflow file for this run

name: Build all wheels for testing
on:
push:
# Build wheels when pushing to master.
branches:
- master
# Build wheels for any PRs.
pull_request:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-12
name: mac
cibw:
build: "cp37* cp38* cp39* cp310* cp311*"
- os: ubuntu-20.04
name: manylinux2014
cibw:
arch: x86_64
build: "cp37* cp38* cp39* cp310* cp311*"
manylinux_image: manylinux2014
- os: windows-2019
name: win_amd64
architecture: x64
cibw:
build: "cp37-win_amd64 cp38-win_amd64 cp39-win_amd64 cp310-win_amd64 cp311-win_amd64"
env:
CIBW_BUILD: "${{ matrix.cibw.build || '*' }}"
CIBW_SKIP: "*musllinux*"
CIBW_ARCHS: "${{ matrix.cibw.arch || 'auto' }}"
CIBW_MANYLINUX_X86_64_IMAGE: "${{ matrix.cibw.manylinux_image }}"
CIBW_BEFORE_BUILD_MACOS: "brew install libomp llvm"
CIBW_REPAIR_WHEEL_COMMAND_MACOS: "delocate-listdeps {wheel} && delocate-wheel --verbose --require-archs {delocate_archs} -w {dest_dir} {wheel}"
# to install latest delocate package
CIBW_DEPENDENCY_VERSIONS: "latest"
# due to package and module name conflict have to temporarily move it away to run tests
CIBW_BEFORE_TEST: "mv {package}/qsimcirq /tmp"
CIBW_TEST_EXTRAS: "dev"
CIBW_TEST_COMMAND: "pytest {package}/qsimcirq_tests/qsimcirq_test.py && mv /tmp/qsimcirq {package}"
steps:
- uses: actions/checkout@v2
# Used to host cibuildwheel
- uses: actions/setup-python@v2
- name: Install cibuildwheel and twine
run: python -m pip install cibuildwheel==2.12.3
- name: Install requirements
run: python -m pip install -r requirements.txt
- name: Run C++ tests
run: bash build_tools/test_libs.sh
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2
with:
name: python-wheels
path: ./wheelhouse/*.whl