From 58e1d64d7ecad745ea4e1321010c80918e9d4acc Mon Sep 17 00:00:00 2001 From: paulzierep Date: Fri, 1 Mar 2024 11:13:08 +0100 Subject: [PATCH] add Galaxy-Tool-Metadata-Extractor-Test-Wrapper for the test (#63) --- README.md | 13 +++++++++---- bin/extract_galaxy_tools.py | 4 ++-- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cc8e9bdc..7a8f7e6f 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,6 @@ The tools performs the following steps: - Creates an interactive table for all tools: [All tools](https://galaxyproject.github.io/galaxy_tool_metadata_extractor/) - Creates an interactive table for all registered communities, e.g. [microGalaxy](https://galaxyproject.github.io/galaxy_tool_metadata_extractor/microgalaxy/) - - # Usage ## Prepare environment @@ -103,8 +101,6 @@ The script will generate a TSV file with each tool found in the list of GitHub r [--keep ] ``` - - ## Add your community In order to add your community you need to: @@ -115,3 +111,12 @@ In order to add your community you need to: - Make a pull request to add your community. - The workflow will run every sunday, so on the next monday, your community table should be added to `results/` +## Development + +To make a test run of the tool to check its functionalities follow [Usage](#Usage) to set-up the environnement and the API key, then run + +```bash +bash ./bin/extract_all_tools_test.sh test.list +``` + +This runs the tool, but only parses the test repository [Galaxy-Tool-Metadata-Extractor-Test-Wrapper](https://github.com/paulzierep/Galaxy-Tool-Metadata-Extractor-Test-Wrapper) \ No newline at end of file diff --git a/bin/extract_galaxy_tools.py b/bin/extract_galaxy_tools.py index 9c913e56..f76fcfad 100644 --- a/bin/extract_galaxy_tools.py +++ b/bin/extract_galaxy_tools.py @@ -122,11 +122,11 @@ def get_tool_github_repositories(g: Github, RepoSelection: Optional[str], run_te :param g: GitHub instance :param RepoSelection: The selection to use from the repository (needed to split the process for CI jobs) - :run_test: for CI testing only use one repository + :run_test: for testing only parse the repository """ if run_test: - return ["https://github.com/TGAC/earlham-galaxytools"] + return ["https://github.com/paulzierep/Galaxy-Tool-Metadata-Extractor-Test-Wrapper"] repo = g.get_user("galaxyproject").get_repo("planemo-monitor") repo_list: List[str] = []