mirror of https://github.com/nucypher/nucypher.git
Naive approach for a CircleCI workflow to test the heartbeat demo
parent
eb88b37f75
commit
ea7cbfba49
|
@ -20,6 +20,16 @@ workflows:
|
|||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
- heartbeat_demo:
|
||||
context: "NuCypher Tests"
|
||||
filters:
|
||||
tags:
|
||||
only: /.*/
|
||||
requires:
|
||||
- pip_install_36
|
||||
- pipenv_install_36
|
||||
- pip_install_37
|
||||
- pipenv_install_37
|
||||
- contracts:
|
||||
context: "NuCypher Tests"
|
||||
filters:
|
||||
|
@ -447,6 +457,20 @@ jobs:
|
|||
command: pipenv run pytest tests/learning
|
||||
- capture_test_results
|
||||
|
||||
heartbeat_demo:
|
||||
<<: *python_36_base
|
||||
steps:
|
||||
- prepare_environment
|
||||
- run:
|
||||
name: Run demo Ursula fleet, Alicia and the Doctor
|
||||
command: |
|
||||
pipenv run python examples/run_lonely_demo_ursula.py > /dev/null 2>&1 &
|
||||
sleep 25
|
||||
pipenv run python examples/run_demo_ursula_fleet.py > /dev/null 2>&1 &
|
||||
sleep 60
|
||||
pipenv run python examples/heartbeat_demo/alicia.py
|
||||
pipenv run python examples/heartbeat_demo/doctor.py
|
||||
|
||||
cli:
|
||||
<<: *python_36_base
|
||||
parallelism: 6
|
||||
|
|
|
@ -99,6 +99,7 @@ print("The policy public key for "
|
|||
import heart_monitor
|
||||
heart_monitor.generate_heart_rate_samples(policy_pubkey,
|
||||
label=label,
|
||||
samples=50,
|
||||
save_as_file=True)
|
||||
|
||||
|
||||
|
@ -122,7 +123,7 @@ doctor_strange = Bob.from_public_keys(powers_and_material=powers_and_material,
|
|||
policy_end_datetime = maya.now() + datetime.timedelta(days=5)
|
||||
# - m-out-of-n: This means Alicia splits the re-encryption key in 5 pieces and
|
||||
# she requires Bob to seek collaboration of at least 3 Ursulas
|
||||
m, n = 3, 5
|
||||
m, n = 2, 3
|
||||
|
||||
|
||||
# With this information, Alicia creates a policy granting access to Bob.
|
||||
|
|
Loading…
Reference in New Issue