Skip to content

Commit b5a16ca

Browse files
committed
Install repos for all tested artifacts
1 parent fd41051 commit b5a16ca

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

planemo/engine/galaxy.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ class GalaxyEngine(BaseEngine, metaclass=abc.ABCMeta):
4747
def _run(self, runnables, job_paths):
4848
"""Run job in Galaxy."""
4949
results = []
50-
for runnable, job_path in zip(runnables, job_paths):
51-
self._ctx.vlog(f"Serving artifact [{runnable}] with Galaxy.")
52-
with self.ensure_runnables_served([runnable]) as config:
53-
self._ctx.vlog(f"Running job path [{job_path}]")
50+
with self.ensure_runnables_served(runnables) as config:
51+
for runnable, job_path in zip(runnables, job_paths):
52+
self._ctx.log(f"Running [{runnable}] - [{job_path}] with Galaxy.")
5453
if self._ctx.verbose:
5554
self._ctx.log(f"Running Galaxy with API configuration [{config.user_api_config}]")
5655
run_response = execute(self._ctx, config, runnable, job_path, **self._kwds)

planemo/galaxy/workflows.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,18 @@
2727

2828
from planemo.galaxy.api import gi
2929
from planemo.io import warn
30+
from typing_extensions import NamedTuple
31+
3032

3133
FAILED_REPOSITORIES_MESSAGE = "Failed to install one or more repositories."
3234
GALAXY_WORKFLOWS_PREFIX = "gxid://workflows/"
3335

3436

37+
class InstalledShedRepos(NamedTuple):
38+
installed_repositories: List[InstallRepoDict]
39+
updated_repositories: List[InstallRepoDict]
40+
41+
3542
def load_shed_repos(runnable):
3643
if runnable.type.name != "galaxy_workflow":
3744
return []

0 commit comments

Comments
 (0)