Skip to content

Commit

Permalink
Softer deprecation: still run tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Nov 10, 2023
1 parent d485486 commit 9f496d6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -U setuptools wheel
pip install .[dev]
pip install .[dev,bayesian]
- name: Run pre-commit
run: |
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .[test,dev]
pip install .[test,dev,bayesian]
- name: Run tests with pytest
run: |
Expand Down
14 changes: 13 additions & 1 deletion modnet/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import warnings

from .vanilla import MODNetModel
from .bayesian import BayesianMODNetModel

try:
from .bayesian import BayesianMODNetModel
except ImportError:
warnings.warn(
"BayesianMODNetModel is deprecated and may be removed in the future.",
DeprecationWarning,
)

BayesianMODNetModel = None

from .ensemble import EnsembleMODNetModel

__all__ = ("MODNetModel", "BayesianMODNetModel", "EnsembleMODNetModel")

0 comments on commit 9f496d6

Please sign in to comment.