Skip to content

Commit ea5007f

Browse files
authored
Merge pull request #1 from converged-computing/add-ci
ci: add testing
2 parents 9293f30 + 4494803 commit ea5007f

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎.github/workflows/main.yaml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python-version: ["3.11", "3.12"]
15+
env:
16+
QRMI_WRAPPERS_SIMULATE: "1"
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install test dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
# Wrappers declare their real deps in each environment.yaml (deployed
26+
# via `snakemake --use-conda`). CI runs the simulate path, which needs
27+
# only Snakemake + Qiskit + Aer (no qrmi, no QPU).
28+
pip install "snakemake>=8" pytest "qiskit>=1.3" "qiskit-aer>=0.15" "amazon-braket-sdk>=1.90" "qiskit_qasm3_import>=0.6.0"
29+
- name: Run wrapper tests (simulate mode)
30+
run: pytest -q

0 commit comments

Comments
 (0)