forked from Qiskit/qiskit-aer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for unreleased Qiskit (Qiskit#1950)
* add tests for unreleased Qiskit * Update .github/workflows/tests.yml Co-authored-by: Matthew Treinish <mtreinish@kortar.org> * Scheduled test for latest Qiskit * run latest Qiskit test at push * fix test * fix qiskit test again * fix test case for runtime parameter binding * remove on push/pull request from latest Qiskit unit test --------- Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
- Loading branch information
Showing
8 changed files
with
63 additions
and
8 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 |
---|---|---|
|
@@ -280,3 +280,4 @@ jobs: | |
rm -rf qiskit_aer | ||
stestr run --slowest | ||
shell: bash | ||
|
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,54 @@ | ||
name: Unit Tests for latest Qiskit | ||
on: | ||
schedule: | ||
- cron: '0 5 * * *' | ||
concurrency: | ||
group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
jobs: | ||
unit-tests-latest-qiskit: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
env: | ||
AER_THRUST_BACKEND: OMP | ||
QISKIT_TEST_CAPTURE_STREAMS: 1 | ||
# Needed to suppress a warning in jupyter-core 5.x by eagerly migrating to | ||
# a new internal interface that will be the default in jupyter-core 6.x. | ||
# This variable should become redundant on release of jupyter-core 6. | ||
JUPYTER_PLATFORM_DIRS: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.11 | ||
- 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: | | ||
python -m pip install -U -c constraints.txt -r requirements-dev.txt wheel | ||
pip install -U git+https://github.com/Qiskit/qiskit.git | ||
- name: Install openblas | ||
run: | | ||
set -e | ||
sudo apt-get update | ||
sudo apt-get install -y libopenblas-dev | ||
shell: bash | ||
- name: Install Aer | ||
run: | | ||
python -m pip install -U . | ||
- name: Run Tests | ||
run: | | ||
set -e | ||
pip check | ||
rm -rf qiskit_aer | ||
stestr run --slowest | ||
shell: bash | ||
|
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 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