-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a test case to check what up with the CI
- Loading branch information
1 parent
5636b03
commit 4823d23
Showing
3 changed files
with
93 additions
and
2 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,65 @@ | ||
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 | ||
name: Fetch all tool stepwise | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
subset: | ||
- repositories01.list | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
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: | | ||
bash ./bin/extract_all_tools_test.sh "${{ matrix.subset }}" | ||
env: | ||
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Commit all tools | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add results | ||
git commit -m "fetch all tools bot" | ||
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@v3 | ||
- uses: actions/setup-python@v4 | ||
- name: Install requirement | ||
run: python -m pip install -r requirements.txt | ||
- name: Run script | ||
run: | | ||
bash ./bin/extract_all_tools_merge.sh | ||
bash ./bin/extract_all_tools_downstream.sh | ||
env: | ||
GITHUB_API_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Commit all tools | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add results | ||
git commit -m "fetch all tools 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,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