Skip to content

Commit

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

from ccc.coef import ccc

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


def test_cm_basic_pvalue_n_permutations_not_given():
# Prepare
Expand Down Expand Up @@ -241,6 +243,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_permutations_is_parallelized():
# Prepare
rs = np.random.RandomState(0)
Expand All @@ -263,6 +266,7 @@ def test_cm_large_n_objects_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():
# Prepare
rs = np.random.RandomState(0)
Expand Down

0 comments on commit 46e6551

Please sign in to comment.