Skip to content

Commit 28b9bcc

Browse files
author
Stephanie Wehner
committed
Changed examples to not include all (e.g. not NativeMode)
1 parent 080bffc commit 28b9bcc

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

Makefile

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,27 +36,35 @@ tests_slow:
3636
tests_all:
3737
@${PYTHON} -m pytest -v --capture=tee-sys ${TEST_DIR}
3838

39+
_example_cleanup:
40+
@simulaqron stop 2>/dev/null || true
41+
@sleep 2
42+
3943
examples:
4044
@echo "--- new-sdk examples ---"
4145
@cd examples/new-sdk/corrRNG && timeout 90 bash run.sh
46+
@$(MAKE) _example_cleanup
4247
@cd examples/new-sdk/extendGHZ && timeout 90 bash run.sh
48+
@$(MAKE) _example_cleanup
4349
@cd examples/new-sdk/teleport && timeout 90 bash run.sh
50+
@$(MAKE) _example_cleanup
4451
@cd examples/new-sdk/classical-client-server && timeout 90 bash run.sh
52+
@$(MAKE) _example_cleanup
4553
@cd examples/new-sdk/template-quantum-local && timeout 90 bash run.sh
54+
@$(MAKE) _example_cleanup
4655
@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."
56+
@$(MAKE) _example_cleanup
57+
@echo "All new sdk examples passed."
5358

5459
install: test-deps
5560
@$(PYTHON) -m pip install -e . ${PIP_FLAGS}
5661

5762
_verified:
5863
@echo "SimulaQron is verified!"
5964

65+
ci: lint tests tests_slow examples
66+
@echo "All CI checks passed."
67+
6068
verify: clean python-deps lint tests _verified
6169

6270
_remove_build:
@@ -75,4 +83,4 @@ _build:
7583

7684
build: _clear_build _build
7785

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

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ classifiers = [
4545
test = [
4646
"flake8>=5.0.0,<6.0.0",
4747
"pytest>=7.1, <8.0",
48-
"projectq<=0.8.0",
4948
"qutip<5.0.0"
5049
]
5150
opt = [
@@ -71,4 +70,4 @@ exclude = ["simulaqron/config"]
7170
simulaqron = "simulaqron.cli:cli_entry_point"
7271

7372
[project.urls]
74-
Homepage = "https://github.com/SoftwareQuTech/SimulaQron"
73+
Homepage = "https://github.com/SoftwareQuTech/SimulaQron"

0 commit comments

Comments
 (0)