Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
breimanntools committed Apr 8, 2024
1 parent 441eb31 commit 21962c0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Run Tests
run: pytest tests
env:
HYPOTHESIS_DEADLINE: None
HYPOTHESIS_DEADLINE: 10000000
MPLBACKEND: Agg

code-quality:
Expand Down
7 changes: 4 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ Welcome to the AAanalysis documentation!
:target: https://github.com/breimanntools/aaanalysis/blob/master/LICENSE
:alt: License

.. |Documentation Status| image:: https://readthedocs.org/projects/aaanalysis/badge/?version=latest
:target: https://aaanalysis.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. |CI/CD pipeline| image:: https://github.com/breimanntools/aaanalysis/actions/workflows/main.yml/badge.svg
:target: https://github.com/breimanntools/aaanalysis/actions/workflows/main.yml
:alt: CI/CD Pipeline
Expand All @@ -36,9 +40,6 @@ Welcome to the AAanalysis documentation!
:target: https://github.com/breimanntools/aaanalysis/actions
:alt: CodeQL

.. |Documentation Status| image:: https://readthedocs.org/projects/aaanalysis/badge/?version=latest
:target: https://aaanalysis.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status

.. |Conda Version| image:: https://anaconda.org/conda-forge/aaanalysis/badges/version.svg
:target: https://anaconda.org/conda-forge/aaanalysis
Expand Down
8 changes: 2 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["poetry-core"]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
Expand Down Expand Up @@ -59,7 +59,7 @@ scipy = "^1.10.0"
seaborn = "^0.11.2"
six = "^1.16.0"
statsmodels = "^0.13.2"
threadpoolctl = "^3.1.0
threadpoolctl = "^3.1.0"

# Additional depdencies (professional)
# Install via pip install aaanalysis[pro]
Expand All @@ -72,10 +72,6 @@ pro = [
"UpSetPlot>=0.8.0"
]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

# Project URLs
[tool.poetry.urls]
"Repository" = "https://github.com/breimanntools/aaanalysis"
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/aaclust_tests/test_aaclust_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import warnings
import pytest


# Helper function
def check_invalid_conditions(X, labels=None):
n_samples, n_features = X.shape
Expand All @@ -29,6 +30,7 @@ def check_invalid_conditions(X, labels=None):
return True
return False


# Main function
class TestAAclustEvaluate:
"""Test evaluate function of the TARGET FUNCTION"""
Expand Down Expand Up @@ -74,6 +76,7 @@ def test_labels_none(self):
with pytest.raises(ValueError):
aa.AAclust().eval(X)

@settings(deadline=1000)
@given(X=npst.arrays(dtype=np.float64, shape=npst.array_shapes(min_dims=2, max_dims=2, min_side=10, max_side=50),
elements=some.floats(allow_nan=False, allow_infinity=False, min_value=1)),
labels_length=some.integers(min_value=10, max_value=50))
Expand Down Expand Up @@ -134,6 +137,7 @@ def test_evaluate_large_dataset(self, X, labels):
warnings.simplefilter("ignore", RuntimeWarning)
assert isinstance(aa.AAclust().eval(X, list_labels=labels), pd.DataFrame)

@settings(deadline=1000)
@given(X=npst.arrays(dtype=np.float64, shape=npst.array_shapes(min_dims=2, max_dims=2, min_side=1, max_side=2),
elements=some.floats(allow_nan=False, allow_infinity=False)))
def test_small_X(self, X):
Expand Down

0 comments on commit 21962c0

Please sign in to comment.