-
Notifications
You must be signed in to change notification settings - Fork 378
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' into fix_aer_provider_gpu
- Loading branch information
Showing
12 changed files
with
212 additions
and
169 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -87,13 +87,18 @@ jobs: | |
aer-test/bin/pip check | ||
shell: bash | ||
tests_linux: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: ubuntu-latest | ||
name: Linux Python ${{ matrix.python-version }}${{ matrix.qiskit-extra && format(' ({0})', matrix.qiskit-extra) }} | ||
needs: [sdist, lint] | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9, "3.10", "3.11", "3.12.0"] | ||
os: ["ubuntu-latest"] | ||
qiskit-extra: [""] | ||
include: | ||
- python-version: "3.10" | ||
qiskit-extra: "'qiskit>=1.0.0rc1'" | ||
|
||
env: | ||
AER_THRUST_BACKEND: OMP | ||
QISKIT_TEST_CAPTURE_STREAMS: 1 | ||
|
@@ -116,17 +121,19 @@ jobs: | |
${{ runner.os }}-${{ matrix.python-version}}-pip-test- | ||
${{ runner.os }}-${{ matrix.python-version}}-pip- | ||
${{ runner.os }}-${{ matrix.python-version}}- | ||
- name: Install Deps | ||
run: python -m pip install -U -c constraints.txt -r requirements-dev.txt wheel | ||
- name: Install openblas | ||
run: | | ||
set -e | ||
sudo apt-get update | ||
sudo apt-get install -y libopenblas-dev | ||
shell: bash | ||
- name: Install Aer | ||
- name: Install Aer and dependencies | ||
run: | | ||
python -m pip install -U . | ||
python -m pip install -U \ | ||
-c constraints.txt \ | ||
-r requirements-dev.txt \ | ||
${{ matrix.qiskit-extra }} \ | ||
. | ||
- name: Run Tests | ||
run: | | ||
set -e | ||
|
@@ -185,13 +192,13 @@ jobs: | |
stestr run --slowest | ||
shell: bash | ||
tests_macos: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: macOS-latest | ||
name: macOS Python ${{ matrix.python-version }} | ||
needs: [sdist, lint] | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9, "3.10", '3.11', "3.12.0"] | ||
os: ["macOS-latest"] | ||
env: | ||
AER_THRUST_BACKEND: OMP | ||
QISKIT_TEST_CAPTURE_STREAMS: 1 | ||
|
@@ -214,12 +221,13 @@ jobs: | |
${{ runner.os }}-${{ matrix.python-version}}-pip-test- | ||
${{ runner.os }}-${{ matrix.python-version}}-pip- | ||
${{ runner.os }}-${{ matrix.python-version}}- | ||
- name: Install Deps | ||
- name: Install Aer and dependencies | ||
run: | | ||
set -e | ||
pip install -U -c constraints.txt -r requirements-dev.txt | ||
- name: Install Aer | ||
run: python -m pip install -U . | ||
pip install -U \ | ||
-c constraints.txt \ | ||
-r requirements-dev.txt \ | ||
. | ||
- name: Run Tests | ||
run: | | ||
set -e | ||
|
@@ -228,13 +236,13 @@ jobs: | |
stestr run --slowest | ||
shell: bash | ||
tests_windows: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: windows-2019 | ||
name: Windows Python ${{ matrix.python-version }} | ||
needs: ["lint", "sdist"] | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9, "3.10", "3.11", "3.12.0"] | ||
os: ["windows-2019"] | ||
env: | ||
AER_THRUST_BACKEND: OMP | ||
QISKIT_TEST_CAPTURE_STREAMS: 1 | ||
|
@@ -259,15 +267,22 @@ jobs: | |
${{ runner.os }}-${{ matrix.python-version}}- | ||
- name: Add msbuild to PATH | ||
uses: microsoft/[email protected] | ||
- name: Install Deps | ||
run: python -m pip install -U -c constraints.txt -r requirements-dev.txt wheel build | ||
- name: Install Aer Windows | ||
- name: Build Aer Windows | ||
env: | ||
CMAKE_GENERATOR: "Visual Studio 16 2019" | ||
run: | | ||
set -e | ||
pip install build | ||
python -I -m build --wheel | ||
pip install -U dist/*.whl | ||
shell: bash | ||
- name: Install Aer and dependencies | ||
run: | | ||
set -e | ||
shopt -s failglob | ||
pip install -U \ | ||
-c constraints.txt \ | ||
-r requirements-dev.txt \ | ||
dist/*.whl | ||
shell: bash | ||
- name: Run Tests | ||
env: | ||
|
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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.