Skip to content

Commit

Permalink
Add scripts to extract workflows from WorkflowHub and UseGalaxy serve…
Browse files Browse the repository at this point in the history
…rs (#158)

* Add workflow extraction

* Add functional tests for workflows

* Add mkdir for community result folder

* Fix linting

* Fix microgalaxy wf tags

* Try to fix CI linting

* Remove linting for Python 3.8

* Add microgalaxy wf tag and fix scripts

* Fix linting on Python 3.8 - @nsoranzo commit

* Remove Python 3.8 from the tests

* Fix GitHub workflow

- Add matrix strategy for test tutorial and test workflows
- Replace pull_request_target by pull_request

* Add tests
  • Loading branch information
bebatut authored Oct 16, 2024
1 parent 9dad911 commit e0d9747
Show file tree
Hide file tree
Showing 14 changed files with 57,334 additions and 23 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/fetch_filter_resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ jobs:
- name: Generate wordcloud and interactive table
run: |
bash sources/bin/format_tools.sh
- name: Fetch all workflows
run: |
bash sources/bin/extract_all_workflows.sh
- name: Filter workflows for communities
run: |
bash sources/bin/get_community_workflows.sh
- name: Fetch all tutorials
run: |
bash sources/bin/extract_all_tutorials.sh
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ concurrency:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.11']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: '3.11'
- name: Install tox
run: python -m pip install 'tox>=1.8.0'
- name: Lint
Expand Down
37 changes: 31 additions & 6 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Run tests
on: [push, pull_request_target]
on: [push, pull_request]

jobs:
test-tools:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.11']
environment: fetch-tools
steps:
- name: Checkout main
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: ${{ matrix.python-version }}
- name: Install requirement
run: python -m pip install -r requirements.txt
- name: Tool extraction
Expand All @@ -26,12 +29,15 @@ jobs:
bash sources/bin/format_tools.sh
test-tutorials:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.11']
steps:
- name: Checkout main
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: ${{ matrix.python-version }}
- name: Install requirement
run: python -m pip install -r requirements.txt
- name: Tutorial extraction
Expand All @@ -41,4 +47,23 @@ jobs:
PLAUSIBLE_API_KEY: ${{ secrets.PLAUSIBLE_API_TOKEN }}
- name: Tutorial filtering
run: |
bash sources/bin/get_community_tutorials.sh test
bash sources/bin/get_community_tutorials.sh test
test-workflows:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.11']
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install requirement
run: python -m pip install -r requirements.txt
- name: Workflow extraction
run: |
bash sources/bin/extract_all_workflows.sh test
- name: Workflow filtering
run: |
bash sources/bin/get_community_workflows.sh test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ Galaxy Communities Dock aka Galaxy Codex is a catalog of Galaxy resources (tools
This repository stores the sources to build this catalog. The catalog is automatically updated every week.


Any Galaxy community can be added to this project and benefit from the dedicated resources, including interactive tables that can be embedded into subdomains and website via an iframe. **Learn [how to add your community](https://training.galaxyproject.org/training-material//topics/dev/tutorials/community-tool-table/tutorial.html) in the dedicated GTN toturial**.
Any Galaxy community can be added to this project and benefit from the dedicated resources, including interactive tables that can be embedded into subdomains and website via an iframe. **Learn [how to add your community](https://training.galaxyproject.org/training-material//topics/dev/tutorials/community-tool-table/tutorial.html) in the dedicated GTN tutorial**.
Loading

0 comments on commit e0d9747

Please sign in to comment.