Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 100 additions & 9 deletions .github/workflows/tests_linux.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests Linux
name: Tests
on:
push:
branches: [main, 'stable/*']
Expand Down Expand Up @@ -32,8 +32,7 @@ jobs:
run: |
set -e
pip install -U pip wheel
pip install -U -c constraints.txt git+https://github.com/Qiskit/qiskit-terra
pip install -U -c constraints.txt -r requirements-dev.txt
pip install -U -c constraints.txt -r requirements-dev.txt qiskit-terra numpy scipy
shell: bash
- name: Run Lint
run: |
Expand Down Expand Up @@ -79,11 +78,10 @@ jobs:
set -e
mkdir out; cd out; virtualenv aer-test
aer-test/bin/pip install ../dist/*tar.gz
aer-test/bin/pip install -c ../constraints.txt git+https://github.com/Qiskit/qiskit-terra
aer-test/bin/python ../tools/verify_wheels.py
aer-test/bin/pip check
shell: bash
tests:
tests_linux:
runs-on: ${{ matrix.os }}
needs: [sdist, lint]
timeout-minutes: 60
Expand Down Expand Up @@ -111,9 +109,6 @@ jobs:
${{ runner.os }}-${{ matrix.python-version}}-
- name: Install Deps
run: python -m pip install -U -c constraints.txt -r requirements-dev.txt wheel
- name: Install terra from source
run: python -m pip install -U -c constraints.txt git+https://github.com/Qiskit/qiskit-terra
if: matrix.python-version != '3.6'
- name: Install openblas
run: |
set -e
Expand Down Expand Up @@ -157,7 +152,7 @@ jobs:
${{ 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 git+https://github.com/Qiskit/qiskit-terra
run: python -m pip install -U -c constraints.txt -r requirements-dev.txt wheel
- name: Install openblas
run: |
set -e
Expand All @@ -177,3 +172,99 @@ jobs:
pip check
stestr run --slowest
shell: bash
tests_macos:
runs-on: ${{ matrix.os }}
needs: [sdist, lint]
timeout-minutes: 60
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
os: ["macOS-latest"]
env:
AER_THRUST_BACKEND: OMP
QISKIT_TEST_CAPTURE_STREAMS: 1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python-version}}-pip-test-${{ hashFiles('setup.py','requirements-dev.txt','constraints.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version}}-pip-test-
${{ runner.os }}-${{ matrix.python-version}}-pip-
${{ runner.os }}-${{ matrix.python-version}}-
- name: Install Deps
run: |
set -e
pip install -U -c constraints.txt -r requirements-dev.txt
- name: Install Aer
run: python -m pip install -U .
- name: Run Tests
env:
QISKIT_SUPPRESS_PACKAGING_WARNINGS: Y
run: |
set -e
pip check
stestr run --slowest
shell: bash
if: runner.os != 'macOS' || matrix.python-version != '3.8'
- name: Run Tests macOS 3.8
env:
QISKIT_SUPPRESS_PACKAGING_WARNINGS: Y
QISKIT_IN_PARALLEL: TRUE
run: |
set -e
pip check
stestr run --slowest
shell: bash
if: runner.os == 'macOS' && matrix.python-version == '3.8'
tests_windows:
runs-on: ${{ matrix.os }}
needs: ["lint", "sdist"]
timeout-minutes: 60
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10"]
os: ["windows-2019"]
env:
AER_THRUST_BACKEND: OMP
QISKIT_TEST_CAPTURE_STREAMS: 1
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Pip cache
uses: actions/cache@v2
with:
path: ~\AppData\Local\pip\Cache
key: ${{ runner.os }}-${{ matrix.python-version}}-pip-test-${{ hashFiles('setup.py','requirements-dev.txt','constraints.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version}}-pip-test-
${{ runner.os }}-${{ matrix.python-version}}-pip-
${{ runner.os }}-${{ matrix.python-version}}-
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Install Aer Windows
run: |
set -e
python setup.py bdist_wheel -- -G 'Visual Studio 16 2019'
pip install --find-links=dist qiskit-aer
shell: bash
- name: Run Tests
env:
QISKIT_SUPPRESS_PACKAGING_WARNINGS: Y
LANG: 'C.UTF-8'
PYTHONIOENCODING: 'utf-8:backslashreplace'
run: |
set -e
chcp.com 65001
pip check
stestr run --slowest
shell: bash
176 changes: 0 additions & 176 deletions .github/workflows/tests_mac.yml

This file was deleted.

Loading