-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Q-CTRL integration tests (#1173)
* add initial qctrl test file * add test & decorator * add tests from Mirko * Added assertness for preciseness of results * remove print statements * move into e2e folder * setup ci * Update q-ctrl-tests.yml * add account test * add more account tests * Update test/qctrl/test_qctrl.py Co-authored-by: Rathish Cholarajan <rathishc24@gmail.com> * address comments * update date to 2023 * Update test/qctrl/test_qctrl.py Co-authored-by: Blake Johnson <blakejohnson04@gmail.com> * Update test/qctrl/test_qctrl.py Co-authored-by: Blake Johnson <blakejohnson04@gmail.com> --------- Co-authored-by: merav-aharoni <merav@il.ibm.com> Co-authored-by: Rathish Cholarajan <rathishc24@gmail.com> Co-authored-by: Blake Johnson <blakejohnson04@gmail.com>
- Loading branch information
1 parent
86c41e0
commit e57edb3
Showing
4 changed files
with
477 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# This code is part of Qiskit. | ||
# | ||
# (C) Copyright IBM 2023. | ||
# | ||
# This code is licensed under the Apache License, Version 2.0. You may | ||
# obtain a copy of this license in the LICENSE.txt file in the root directory | ||
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# Any modifications or derivative works of this code must retain this | ||
# copyright notice, and modified files need to carry a notice indicating | ||
# that they have been altered from the originals. | ||
|
||
name: Q-CTRL Tests | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
workflow_dispatch: | ||
jobs: | ||
integration-tests: | ||
name: Run integration tests - ${{ matrix.environment }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
# avoid cancellation of in-progress jobs if any matrix job fails | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.9 ] | ||
os: [ "ubuntu-latest" ] | ||
environment: [ "ibm-cloud-staging" ] | ||
environment: ${{ matrix.environment }} | ||
env: | ||
QISKIT_IBM_TOKEN: ${{ secrets.QISKIT_IBM_TOKEN_QCTRL }} | ||
QISKIT_IBM_URL: ${{ secrets.QISKIT_IBM_URL }} | ||
QISKIT_IBM_INSTANCE: ${{ secrets.QISKIT_IBM_INSTANCE_QCTRL }} | ||
CHANNEL_STRATEGY: q-ctrl | ||
LOG_LEVEL: DEBUG | ||
STREAM_LOG: True | ||
QISKIT_IN_PARALLEL: True | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -e . | ||
pip install -c constraints.txt -r requirements-dev.txt | ||
- name: Run q-ctrl tests | ||
run: python -m unittest test/qctrl/test_qctrl.py |
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.