Skip to content

Commit d721c96

Browse files
Stephanie Wehnerclaude
andcommitted
Fix CI: add make examples target, replace netqasm.yaml with slow tests
- Add make examples target running the 6 new-sdk and 4 nativeMode examples (excludes the two skeleton templates and the eventBased examples) - Replace netqasm.yaml (which cloned an external repo and installed the deprecated projectq) with a simple slow-test workflow running make tests_slow - Add tests_slow, tests_all and examples to .PHONY Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 04450e7 commit d721c96

2 files changed

Lines changed: 21 additions & 18 deletions

File tree

.github/workflows/netqasm.yaml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
1-
name: NetQASM backend tests
1+
name: Slow tests
22

33
on: push
44

55
jobs:
6-
examples:
7-
name: Run examples
6+
slow-tests:
7+
name: Run slow tests
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@master
1111
- uses: actions/setup-python@master
1212
with:
1313
python-version: "3.12"
14-
- name: Clone and install netqasm
15-
run: |
16-
git clone https://github.com/QuTech-Delft/netqasm.git
17-
cd netqasm
18-
make install
19-
cd ..
2014
- name: Install simulaqron
2115
run: make install
22-
- name: Install pybind
23-
run: pip install pybind11
24-
- name: Install projectq
25-
run: pip install -Iv projectq==0.8.0
26-
- name: Run examples
27-
env:
28-
NETQASM_SIMULATOR: simulaqron
29-
run: make -C netqasm external-examples
16+
- name: Run slow tests
17+
run: make tests_slow

Makefile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ tests_slow:
3636
tests_all:
3737
@${PYTHON} -m pytest -v --capture=tee-sys ${TEST_DIR}
3838

39+
examples:
40+
@echo "--- new-sdk examples ---"
41+
@cd examples/new-sdk/corrRNG && timeout 90 bash run.sh
42+
@cd examples/new-sdk/extendGHZ && timeout 90 bash run.sh
43+
@cd examples/new-sdk/teleport && timeout 90 bash run.sh
44+
@cd examples/new-sdk/classical-client-server && timeout 90 bash run.sh
45+
@cd examples/new-sdk/template-quantum-local && timeout 90 bash run.sh
46+
@cd examples/new-sdk/midCircuitLogic && timeout 90 bash run.sh
47+
@echo "--- nativeMode examples ---"
48+
@cd examples/nativeMode/corrRNG && timeout 90 bash run.sh
49+
@cd examples/nativeMode/extendGHZ && timeout 90 bash run.sh
50+
@cd examples/nativeMode/teleport && timeout 90 bash run.sh
51+
@cd examples/nativeMode/graphState && timeout 90 bash run.sh
52+
@echo "All examples passed."
53+
3954
install: test-deps
4055
@$(PYTHON) -m pip install -e . ${PIP_FLAGS}
4156

@@ -60,4 +75,4 @@ _build:
6075

6176
build: _clear_build _build
6277

63-
.PHONY: clean lint python-deps tests full_tests verify build
78+
.PHONY: clean lint python-deps tests tests_slow tests_all examples full_tests verify build

0 commit comments

Comments
 (0)