Skip to content

Commit

Permalink
Tensorflow test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgbckr committed Jan 4, 2025
1 parent 34e5685 commit 9edfa37
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 28 deletions.
27 changes: 0 additions & 27 deletions requirements-deepcell-mac-arm64_tf213.txt

This file was deleted.

2 changes: 1 addition & 1 deletion tests/test_6_patch_proximity_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
TEST_DIR = pathlib.Path(__file__).parent


@pytest.mark.slow
# @pytest.mark.slow
def test_6_patch_proximity_analysis():
# Set up environment
import matplotlib
Expand Down
32 changes: 32 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,38 @@ envlist = default
isolated_build = True


[testenv:platform-macos-metal]
description = Invoke pytest to run automated tests
allowlist_externals =
brew
echo
setenv =
TOXINIDIR = {toxinidir}
DYLD_LIBRARY_PATH = {env:DYLD_LIBRARY_PATH}{:}/opt/homebrew/Cellar/openslide/4.0.0/lib{:}/opt/homebrew/Cellar/vips/8.16.0/lib
TF_CPP_MIN_LOG_LEVEL = 2
CUDA_VISIBLE_DEVICES = -1
passenv =
HOME
SETUPTOOLS_*
extras =
testing
deps =
cffi
commands =
echo {env:DYLD_LIBRARY_PATH}
brew install vips
brew install graphviz
brew list openslide
brew list vips
pip install pyvips
pip install openslide-python
pip install -r requirements-deepcell-mac-arm64_tf210-metal.txt
pip install deepcell --no-deps
python --version
pip show tensorflow tensorflow-macos tensorflow-metal keras
pytest {posargs}


[testenv:platform-macos]
description = Invoke pytest to run automated tests
allowlist_externals =
Expand Down

0 comments on commit 9edfa37

Please sign in to comment.