diff --git a/.github/workflows/generate_documentation.yml b/.github/workflows/generate_documentation.yml index 546d27b1..85b82775 100644 --- a/.github/workflows/generate_documentation.yml +++ b/.github/workflows/generate_documentation.yml @@ -11,11 +11,15 @@ jobs: max-parallel: 5 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python 3.10 uses: actions/setup-python@v2 with: python-version: '3.10' + - name: set up Pandoc + uses: r-lib/actions/setup-pandoc@v2 + with: + pandoc-version: '3.1.11' # The pandoc version to download (if necessary) and use. - name: Add conda to system path run: | # $CONDA is an environment variable pointing to the root of the miniconda directory @@ -29,9 +33,11 @@ jobs: pip install ./ - name: Install Sphinx and additional dependences run: | + sudo apt install pandoc pip install sphinx sphinx-rtd-theme sphinx-autodoc-typehints sphinx-argparse nbsphinx renku-sphinx-theme + + - run: echo "# Test" | pandoc -t html - name: Generate Documentation - uses: docker://pandoc/core:2.9 run: | cd docs_source make clean diff --git a/src/sparcscore/processing_test.py b/src/sparcscore/processing_test.py index 161ea9dd..7114debc 100644 --- a/src/sparcscore/processing_test.py +++ b/src/sparcscore/processing_test.py @@ -35,9 +35,6 @@ def test_segment_threshold(): labels.shape == image.shape ), "Output labels and input image shapes are not equal" - # Check if output has the correct dtype (int) - assert isinstance(labels.dtype, int), "Output label dtype is not integer" - # Check if values are non-negative assert np.all(labels >= 0), "Output labels contain negative values" @@ -54,9 +51,6 @@ def test_segment_global_threshold(): labels.shape == image.shape ), "Output labels and input image shapes are not equal" - # Check if output has the correct dtype (int) - assert isinstance(labels.dtype, int), "Output label dtype is not integer" - # Check if values are non-negative assert np.all(labels >= 0), "Output labels contain negative values"