forked from Qiskit/qiskit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Qiskit/qiskit into oxidize-dag-node
- Loading branch information
Showing
277 changed files
with
11,837 additions
and
2,246 deletions.
There are no files selected for viewing
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Miri | ||
on: | ||
push: | ||
pull_request: | ||
concurrency: | ||
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }} | ||
# Only cancel in PR mode. In push mode, don't cancel so we don't see spurious test "failures", | ||
# and we get coverage reports on Coveralls for every push. | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
jobs: | ||
miri: | ||
if: github.repository_owner == 'Qiskit' | ||
name: Miri | ||
runs-on: ubuntu-latest | ||
env: | ||
RUSTUP_TOOLCHAIN: nightly | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: miri | ||
|
||
- name: Prepare Miri | ||
run: | | ||
set -e | ||
# Some of our dependencies aren't Miri-safe with their current release versions. These | ||
# need overriding with known-good versions to run against until the Miri-safe versions are | ||
# released and updated in our Cargo.lock. | ||
cat >>Cargo.toml <<EOF | ||
[patch.crates-io] | ||
crossbeam-epoch = { git = "https://github.com/crossbeam-rs/crossbeam", rev = "9e859610" } | ||
EOF | ||
cargo miri setup | ||
- name: Run Miri | ||
run: cargo miri test | ||
env: | ||
# - `tree-borrows` is required for crossbeam components. | ||
# - `symbolic-alignment-check` is extra checking. | ||
# - `strict-provenance` is extra checking. | ||
MIRIFLAGS: '-Zmiri-tree-borrows -Zmiri-symbolic-alignment-check -Zmiri-strict-provenance' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
name: Tests | ||
on: | ||
push: | ||
branches: [ main, 'stable/*' ] | ||
pull_request: | ||
branches: [ main, 'stable/*' ] | ||
|
||
concurrency: | ||
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
tests: | ||
if: github.repository_owner == 'Qiskit' | ||
name: macOS-arm64-tests-Python-${{ matrix.python-version }} | ||
runs-on: macOS-14 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# Normally we test min and max version but we can't run python 3.8 or | ||
# 3.9 on arm64 until actions/setup-python#808 is resolved | ||
python-version: ["3.10", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Rust toolchain | ||
uses: dtolnay/[email protected] | ||
if: matrix.python-version == '3.10' | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: arm64 | ||
- name: 'Install dependencies' | ||
run: | | ||
python -m pip install -U -r requirements.txt -c constraints.txt | ||
python -m pip install -U -r requirements-dev.txt -c constraints.txt | ||
python -m pip install -c constraints.txt -e . | ||
- name: 'Install optionals' | ||
run: | | ||
python -m pip install -r requirements-optional.txt -c constraints.txt | ||
python tools/report_numpy_state.py | ||
if: matrix.python-version == '3.10' | ||
- name: 'Run tests' | ||
run: stestr 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,20 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-11, windows-latest] | ||
os: [ubuntu-latest, macos-11, windows-latest, macos-14] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
if: matrix.os != 'macos-14' | ||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
architecture: arm64 | ||
if: matrix.os == 'macos-14' | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: llvm-tools-preview | ||
|
@@ -34,13 +41,13 @@ jobs: | |
with: | ||
path: ./wheelhouse/*.whl | ||
name: wheels-${{ matrix.os }} | ||
build_wheels_32bit: | ||
name: Build wheels 32bit | ||
build_wheels_macos_arm_py38: | ||
name: Build wheels on macOS arm | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
os: [macos-11] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
|
@@ -53,45 +60,47 @@ jobs: | |
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_SKIP: 'pp* cp36-* cp37-* *musllinux* *amd64 *x86_64' | ||
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin | ||
CIBW_BUILD: cp38-macosx_universal2 cp38-macosx_arm64 | ||
CIBW_ARCHS_MACOS: arm64 universal2 | ||
CIBW_ENVIRONMENT: >- | ||
CARGO_BUILD_TARGET="aarch64-apple-darwin" | ||
PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: wheels-${{ matrix.os }}-32 | ||
build_wheels_macos_arm: | ||
name: Build wheels on macOS arm | ||
name: wheels-${{ matrix.os }}-arm | ||
build_wheels_32bit: | ||
name: Build wheels 32bit | ||
runs-on: ${{ matrix.os }} | ||
environment: release | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-11] | ||
os: [ubuntu-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.10' | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: llvm-tools-preview | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin | ||
CIBW_ARCHS_MACOS: arm64 universal2 | ||
CIBW_ENVIRONMENT: >- | ||
CARGO_BUILD_TARGET="aarch64-apple-darwin" | ||
PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" | ||
CIBW_SKIP: 'pp* cp36-* cp37-* *musllinux* *amd64 *x86_64' | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
name: wheels-${{ matrix.os }}-arm | ||
name: wheels-${{ matrix.os }}-32 | ||
upload_shared_wheels: | ||
name: Upload shared build wheels | ||
runs-on: ubuntu-latest | ||
environment: release | ||
permissions: | ||
id-token: write | ||
needs: ["build_wheels", "build_wheels_macos_arm", "build_wheels_32bit"] | ||
needs: ["build_wheels", "build_wheels_32bit", "build_wheels_macos_arm_py38"] | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ pull_request_rules: | |
actions: | ||
backport: | ||
branches: | ||
- stable/1.0 | ||
- stable/1.1 |
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
Oops, something went wrong.