diff --git a/.ci/run_examples.py b/.ci/run_examples.py index 58d4881df1..5a3da2b7bd 100644 --- a/.ci/run_examples.py +++ b/.ci/run_examples.py @@ -33,13 +33,13 @@ print(file) minimum_version_str = get_example_required_minimum_dpf_version(file) if float(server_version) - float(minimum_version_str) < -0.05: - print(f"Example skipped as it requires DPF {minimum_version_str}.") + print(f"Example skipped as it requires DPF {minimum_version_str}.", flush=True) continue try: out = subprocess.check_output([sys.executable, file]) except subprocess.CalledProcessError as e: sys.stderr.write(str(e.args)) if e.returncode != 3221225477: - print(out) + print(out, flush=True) raise e - print("PASS") + print("PASS", flush=True) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 037a56bcd4..9ef7ee947a 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -132,7 +132,6 @@ jobs: shell: bash working-directory: .ci run: | - echo on python run_examples.py - name: "Kill all servers" diff --git a/examples/04-advanced/13-manage_licensing.py b/examples/04-advanced/13-manage_licensing.py index 4a39f84c70..fd90933310 100644 --- a/examples/04-advanced/13-manage_licensing.py +++ b/examples/04-advanced/13-manage_licensing.py @@ -104,7 +104,7 @@ # license increment is used, and for what maximum duration. # Use the LicenseContextManager to block a specific increment for a limited duration -with dpf.LicenseContextManager(increment_name="preppost", license_timeout_in_seconds=1.0) as lic: +with dpf.LicenseContextManager(increment_name="preppost", license_timeout_in_seconds=5.0) as lic: # Instantiate the licensed operator out = op_premium.eval() print(out)