Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install imagecodecs and openslide-python dependencies so additional tests will run #634

Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ python -m pip install $(echo ./dist/cucim*.whl)[test]
if [[ "$(arch)" == "aarch64" && ${RAPIDS_BUILD_TYPE} == "pull-request" ]]; then
python ./ci/wheel_smoke_test.py
else
# TODO: revisit enabling imagecodecs package during testing
python -m pytest ./python/cucim

DEBIAN_FRONTEND=noninteractive apt update
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends libopenslide0

# TODO: fix and remove two test cases skipped here
# test_cache_hit_miss currently fails
# test_converter passes, but a segfault occurs on pytest exit when it is enabled
python -m pytest ./python/cucim -k "not test_converter and not test_cache_hit_miss"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to move these to PyTest decorators?

We could also use skipif to more carefully restrict when they are skipped

@pytest.mark.skip(reason="currently fails")
def test_cache_hit_miss():
    ...
 
@pytest.mark.skip(reason="passes, but a segfault occurs on pytest exit when it is enabled")
def test_converter():
    ...

fi
7 changes: 3 additions & 4 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,9 @@ dependencies:
- opencv-python-headless>=4.6
- output_types: [requirements, pyproject]
packages:
# temporarily remove imagecodecs / openslide-python from wheel tests
# # skip packages on arm64 that don't provide a wheel
# - imagecodecs>=2021.6.8; platform_machine=='x86_64'
# - openslide-python>=1.1.2; platform_machine=='x86_64'
# skip packages on arm64 that don't provide a wheel
- imagecodecs>=2021.6.8; platform_machine=='x86_64'
- openslide-python>=1.1.2; platform_machine=='x86_64'
- matplotlib
- opencv-python-headless>=4.6
- click
2 changes: 2 additions & 0 deletions python/cucim/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ Tracker = "https://github.com/rapidsai/cucim/issues"
test = [
"GPUtil>=1.4.0",
"click",
"imagecodecs>=2021.6.8; platform_machine=='x86_64'",
"matplotlib",
"opencv-python-headless>=4.6",
"openslide-python>=1.1.2; platform_machine=='x86_64'",
"pooch>=1.6.0",
"psutil>=5.8.0",
"pytest-cov>=2.12.1",
Expand Down
Loading