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

workaround 5882 reenable weekly preview release #5887

Merged
merged 5 commits into from
Jan 23, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/weekly-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
python setup.py sdist bdist_wheel

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
5 changes: 3 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ pydicom =
pydicom
h5py =
h5py
MetricsReloaded =
MetricsReloaded @ git+https://github.com/Project-MONAI/MetricsReloaded@monai-support#egg=MetricsReloaded
# # workaround https://github.com/Project-MONAI/MONAI/issues/5882
# MetricsReloaded =
# MetricsReloaded @ git+https://github.com/Project-MONAI/MetricsReloaded@monai-support#egg=MetricsReloaded

[flake8]
select = B,C,E,F,N,P,T4,W,B9
Expand Down
4 changes: 4 additions & 0 deletions tests/test_metrics_reloaded.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
from parameterized import parameterized

from monai.metrics import MetricsReloadedBinary, MetricsReloadedCategorical
from monai.utils import optional_import

_, has_metrics = optional_import("MetricsReloaded")

# shape: (1, 1, 2, 2)
y_pred = torch.tensor([[[[1.0, 0.0], [0.0, 1.0]]]])
Expand Down Expand Up @@ -71,6 +74,7 @@
]


@unittest.skipIf(not has_metrics, "MetricsReloaded not available.")
class TestMetricsReloaded(unittest.TestCase):
@parameterized.expand(TEST_CASES_BINARY)
def test_binary(self, input_param, input_data, expected_val):
Expand Down