From 7619f0b23c53363af45b762d0be8cec08a80cab1 Mon Sep 17 00:00:00 2001 From: Sandro Campos Date: Tue, 6 Feb 2024 11:21:52 -0500 Subject: [PATCH] Run smoke test and force it to fail --- .github/workflows/smoke-test.yml | 7 ++----- tests/benchmarking_asv/test_example_module.py | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index db58154..81d9a22 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -6,11 +6,8 @@ name: Unit test smoke test on: - - # Runs this workflow automatically - schedule: - - cron: 45 6 * * * - + pull_request: + branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: diff --git a/tests/benchmarking_asv/test_example_module.py b/tests/benchmarking_asv/test_example_module.py index 8c0ab54..414edf8 100644 --- a/tests/benchmarking_asv/test_example_module.py +++ b/tests/benchmarking_asv/test_example_module.py @@ -17,7 +17,7 @@ def test_meaning() -> None: def test_run_time_computation() -> None: output = example_module.run_time_computation() - assert 0 <= output <= 4 + assert output > 4 def test_mem_computation() -> None: