Skip to content

Commit

Permalink
update tests and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiamaedler committed May 31, 2024
1 parent 63bfaf1 commit 1c3a0df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/generate_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 0 additions & 6 deletions src/sparcscore/processing_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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"

Expand Down

0 comments on commit 1c3a0df

Please sign in to comment.