forked from galaxyproject/galaxy_codex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* action in main to manually dispatch * update * update * update * update * All tools bot * full wf * update * filter community tool bot * filter communities bot * test flter * filter communities bot * trigger pages only when new results are created * Update .github/workflows/static.yml Co-authored-by: Nicola Soranzo <[email protected]> * fetch tools stepwise with CI * update CI * updat CI * update CI * update CI * update CI and get more verbose tool logs * add a test case to check what up with the CI * allow to run the test ever * try test with other api key * next try * as secrets * fetch all tools bot * merge test * cat in CI * CI all tools * CI test * force push * fetch all tools bot - step merge * test git merge * more tests * cover staged change as well * fetch all tools bot - step fetch * CI test * fetch all tools bot - step fetch * update fetch and filter CI * removed results from test runs * fetch all tools bot - step fetch * try pull merge with rebase * merge then push * test * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * CI update * fetch all tools bot - step fetch * fetch all tools bot - step merge * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step merge * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step merge * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step merge * fetch all tools bot - step fetch * fetch all tools bot - step merge * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step fetch * fetch all tools bot - step merge * Add nsoranzo review --------- Co-authored-by: github-actions <[email protected]> Co-authored-by: Nicola Soranzo <[email protected]>
- Loading branch information
1 parent
e85bfc4
commit b28b3a0
Showing
19 changed files
with
2,883 additions
and
828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: Fetch all tools | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
#Every Sunday at 8:00 am | ||
- cron: "0 8 * * 0" | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "tools" | ||
cancel-in-progress: false | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
fetch-all-tools-stepwise: | ||
runs-on: ubuntu-20.04 | ||
environment: fetch-tools | ||
name: Fetch all tool stepwise | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
subset: | ||
- repositories01.list | ||
- repositories02.list | ||
- repositories03.list | ||
- repositories04.list | ||
steps: | ||
- 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: Run script | ||
run: | | ||
export GITHUB_API_KEY=${{ secrets.GH_API_TOKEN }} | ||
bash ./bin/extract_all_tools_stepwise.sh "${{ matrix.subset }}" | ||
- name: Commit all tools | ||
# add or commit any changes in results if there was a change, merge with main and push as bot | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git pull --no-rebase -s recursive -X ours | ||
git add results | ||
git status | ||
git diff --quiet && git diff --staged --quiet || (git commit -m "fetch all tools bot - step fetch") | ||
git push | ||
fetch-all-tools-merge: | ||
runs-on: ubuntu-20.04 | ||
needs: fetch-all-tools-stepwise | ||
name: Fetch all tools merge | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
- name: Install requirement | ||
run: python -m pip install -r requirements.txt | ||
- name: Run script | ||
run: | | ||
cat results/repositories*.list_tools.tsv > results/all_tools.tsv | ||
bash ./bin/extract_all_tools_downstream.sh | ||
- name: Commit all tools | ||
# add or commit any changes in results if there was a change, merge with main and push as bot | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git pull --no-rebase -s recursive -X ours | ||
git add results | ||
git status | ||
git diff --quiet && git diff --staged --quiet || (git commit -m "fetch all tools bot - step merge") | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Filter community tools | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
# the workflow it triggered when all_tools_tsv is changed | ||
push: | ||
paths: | ||
- 'results/all_tools_tsv' | ||
branches: ["main"] | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
concurrency: | ||
group: "filter" | ||
cancel-in-progress: false | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
filter-all-tools: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- name: Install requirement | ||
run: python -m pip install -r requirements.txt | ||
- name: Run script | ||
run: | | ||
bash ./bin/get_community_tools.sh | ||
- name: Commit results | ||
# commit the new filtered data, only if stuff was changed | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git diff --quiet || (git add results && git commit -m "filter communities bot") | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Run tests | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | ||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | ||
# concurrency: | ||
# group: "tools" | ||
# cancel-in-progress: false | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
fetch-all-tools-stepwise: | ||
runs-on: ubuntu-20.04 | ||
environment: fetch-tools | ||
name: Fetch all tool stepwise | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
subset: | ||
- test.list | ||
steps: | ||
- 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: Run script | ||
# run: bash bin/extract_all_tools.sh | ||
run: | | ||
export GITHUB_API_KEY=${{ secrets.GH_API_TOKEN }} | ||
bash ./bin/extract_all_tools_test.sh "${{ matrix.subset }}" | ||
- name: Commit all tools | ||
# add or commit any changes in results if there was a change, merge with main and push as bot | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git pull --no-rebase -s recursive -X ours | ||
git add results | ||
git status | ||
git diff --quiet && git diff --staged --quiet || (git commit -m "fetch all tools bot - step fetch") | ||
git push | ||
# fetch-all-tools-merge: | ||
# runs-on: ubuntu-20.04 | ||
# needs: fetch-all-tools-stepwise | ||
# name: Fetch all tools merge | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/setup-python@v5 | ||
# - name: Install requirement | ||
# run: python -m pip install -r requirements.txt | ||
# - name: Run script | ||
# run: | | ||
# cat results/repositories*.list_tools.tsv > results/all_tools.tsv | ||
# bash ./bin/extract_all_tools_downstream.sh | ||
# - name: Commit all tools | ||
# run: | | ||
# git config user.name github-actions | ||
# git config user.email [email protected] | ||
# git diff --quiet || (git add results && git commit -m "fetch all tools bot - step merge") | ||
# git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p 'results/' | ||
|
||
python bin/create_interactive_table.py \ | ||
--table "results/all_tools.tsv" \ | ||
--template "data/interactive_table_template.html" \ | ||
--output "results/index.html" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p 'results/' | ||
|
||
output="results/${1}_tools.tsv" | ||
|
||
python bin/extract_galaxy_tools.py \ | ||
extractools \ | ||
--api $GITHUB_API_KEY \ | ||
--all_tools $output \ | ||
--planemorepository $1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p 'results/' | ||
|
||
output="results/${1}_tools.tsv" | ||
|
||
python bin/extract_galaxy_tools.py \ | ||
extractools \ | ||
--api $GITHUB_API_KEY \ | ||
--all_tools $output \ | ||
--planemorepository $1 \ | ||
--test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.