diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b13b15..17a2aa0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,10 @@ on: jobs: linux: - + # Skip only a same-repo PR whose head branch is dev -- that exact commit + # was already tested by the push trigger above. Everything else + # (external PRs, Dependabot) still runs normally. + if: github.event_name != 'pull_request' || github.head_ref != 'dev' runs-on: ubuntu-latest strategy: matrix: @@ -58,7 +61,7 @@ jobs: pytest windows: - + if: github.event_name != 'pull_request' || github.head_ref != 'dev' runs-on: windows-latest steps: - name: Checkout vitallens-python diff --git a/tests/test_vitallens.py b/tests/test_vitallens.py index 65ceba5..8d483c2 100644 --- a/tests/test_vitallens.py +++ b/tests/test_vitallens.py @@ -121,7 +121,7 @@ def create_mock_api_response( @pytest.mark.parametrize("override_fps_target", [None, 15, 10]) @pytest.mark.parametrize("override_global_parse", [False, True]) -@pytest.mark.parametrize("requested_model", ["vitallens", "vitallens-2.0"]) +@pytest.mark.parametrize("requested_model", ["vitallens-2.0"]) @patch('requests.post', side_effect=create_mock_api_response) def test_VitalLensRPPGMethod_file_mock(mock_post, mock_resolve_config, request, override_fps_target, override_global_parse, requested_model): api_key = request.getfixturevalue('test_dev_api_key') @@ -146,7 +146,7 @@ def test_VitalLensRPPGMethod_file_mock(mock_post, mock_resolve_config, request, assert live.shape == (test_video_ndarray.shape[0],) @pytest.mark.parametrize("override_fps_target", [None, 15, 10]) -@pytest.mark.parametrize("long", [False, True]) +@pytest.mark.parametrize("long", [True]) @pytest.mark.parametrize("override_global_parse", [False, True]) @pytest.mark.parametrize("requested_model", ["vitallens"]) @patch('requests.post', side_effect=create_mock_api_response)