diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 3c4bdc0c..7412adbe 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -47,3 +47,7 @@ jobs: run: | cd plugins/${{ matrix.plugin_name }} tox -e fmt + - name: Run pytest + run: | + cd plugins/${{ matrix.plugin_name }} + tox -e py diff --git a/plugins/framework/tests/test_framework.py b/plugins/framework/tests/test_framework.py index de7abd41..b59ff62f 100644 --- a/plugins/framework/tests/test_framework.py +++ b/plugins/framework/tests/test_framework.py @@ -272,14 +272,16 @@ def test_plugin_registration_order(): # build a set of hooks that register the activation order def hook_builder(act_order=None): + + if act_order is None: + act_order = [] + def _hook( self, model, train_args, modifiable_args, ): - if act_order is None: - act_order = [] act_order.append(str(self.__class__)) return model, modifiable_args