Skip to content

Commit a50a2b4

Browse files
committed
[WIP] [FIX] Fixing the GitHub workflow not taking the API key...
1 parent 45edbbf commit a50a2b4

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/quality_checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
run: |
1919
python -m pip install --upgrade pip
2020
pip install .[test]
21+
- name: Debug environment
22+
run: env | grep QISKIT_IBM_TOKEN
23+
env:
24+
QISKIT_IBM_TOKEN: ${{ secrets.QISKIT_IBM_TOKEN }}
2125
- name: Run unit tests
2226
run: pytest --cov=qbench --cov-report=xml -k 'not awscreds and not aersim'
2327
env:

qbench/jobs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
elif "IQP_API_TOKEN" in os.environ and "QISKIT_IBM_TOKEN" not in os.environ:
2424
QISKIT_IBM_TOKEN = IQP_API_TOKEN
2525

26+
print(f"QISKIT_IBM_TOKEN is set: {bool(QISKIT_IBM_TOKEN)}")
27+
print(f"IBMQ_TOKEN is set: {bool(IBMQ_TOKEN)}")
28+
print(f"IQP_API_TOKEN is set: {bool(IQP_API_TOKEN)}")
29+
2630
service = QiskitRuntimeService("ibm_quantum", QISKIT_IBM_TOKEN)
2731

2832

0 commit comments

Comments
 (0)