Skip to content

Commit

Permalink
disable speed tests on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
miltondp committed Sep 6, 2023
1 parent 9af6327 commit 4d4f70a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_coef_pval.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
from ccc.coef import ccc


IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"


def test_cm_basic_pvalue_n_permutations_not_given():
# Prepare
rs = np.random.RandomState(123)
Expand Down Expand Up @@ -244,6 +247,7 @@ def test_cm_single_argument_is_matrix():


@pytest.mark.skipif(os.cpu_count() < 2, reason="requires at least 2 cores")
@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work in Github Actions.")
def test_cm_large_n_objects_pvalue_computation_is_parallelized():
# Prepare
rs = np.random.RandomState(0)
Expand All @@ -266,6 +270,7 @@ def test_cm_large_n_objects_pvalue_computation_is_parallelized():


@pytest.mark.skipif(os.cpu_count() < 2, reason="requires at least 2 cores")
@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work in Github Actions.")
def test_cm_medium_n_objects_with_many_pvalue_permutations_is_parallelized():
# Prepare
rs = np.random.RandomState(0)
Expand All @@ -288,6 +293,7 @@ def test_cm_medium_n_objects_with_many_pvalue_permutations_is_parallelized():


@pytest.mark.skipif(os.cpu_count() < 2, reason="requires at least 2 cores")
@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test doesn't work in Github Actions.")
def test_cm_medium_n_objects_with_many_pvalue_permutations_is_parallelized_with_ari_numba():
# Prepare
rs = np.random.RandomState(0)
Expand Down

0 comments on commit 4d4f70a

Please sign in to comment.