-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from nf-core/tower-actions-testing
Tower actions testing
- Loading branch information
Showing
6 changed files
with
221 additions
and
3 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,95 @@ | ||
name: full-sized tests on cloud providers | ||
run-name: Submitting workflow to all cloud providers using full sized data | ||
on: | ||
release: | ||
types: [published] | ||
inputs: | ||
platform: | ||
description: "Platform to run test" | ||
default: "all" | ||
workflow_dispatch: | ||
inputs: | ||
platform: | ||
description: "Platform to run test" | ||
required: true | ||
default: "all" | ||
type: choice | ||
options: | ||
- all | ||
- aws | ||
- azure | ||
- gcp | ||
jobs: | ||
run-full-tests-on-aws: | ||
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'aws' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
aligner: ["star_salmon", "star_rsem"] | ||
steps: | ||
- uses: seqeralabs/action-tower-launch@v1 | ||
with: | ||
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }} | ||
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }} | ||
compute_env: ${{ secrets.TOWER_CE_AWS_CPU }} | ||
workdir: "${{ secrets.TOWER_BUCKET_AWS }}/work/testpipeline/work-${{ github.sha }}" | ||
run_name: "aws_testpipeline_${{ matrix.aligner }}" | ||
profiles: test | ||
parameters: | | ||
{ | ||
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}", | ||
"outdir": "${{ secrets.TOWER_BUCKET_AWS }}/rnaseq/results-${{ github.sha }}/aligner_${{ matrix.aligner }}" | ||
} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: Tower debug log file | ||
path: tower_action_*.log | ||
run-full-tests-on-gcp: | ||
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'gcp' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
aligner: ["star_salmon", "star_rsem"] | ||
steps: | ||
- uses: seqeralabs/action-tower-launch@v1 | ||
with: | ||
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }} | ||
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }} | ||
compute_env: ${{ secrets.TOWER_CE_GCP_CPU }} | ||
workdir: "${{ secrets.TOWER_BUCKET_GCP }}/work/testpipeline/work-${{ github.sha }}" | ||
run_name: "gcp_testpipeline_${{ matrix.aligner }}" | ||
profiles: test | ||
parameters: | | ||
{ | ||
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}", | ||
"outdir": "${{ secrets.TOWER_BUCKET_GCP }}/rnaseq/results-${{ github.sha }}/aligner_${{ matrix.aligner }}" | ||
} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: Tower debug log file | ||
path: tower_action_*.log | ||
run-full-tests-on-azure: | ||
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'azure' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
aligner: ["star_salmon", "star_rsem"] | ||
steps: | ||
- uses: seqeralabs/action-tower-launch@v1 | ||
with: | ||
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }} | ||
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }} | ||
compute_env: ${{ secrets.TOWER_CE_AZURE_CPU }} | ||
workdir: "${{ secrets.TOWER_BUCKET_AZURE }}/work/testpipeline/work-${{ github.sha }}" | ||
run_name: "azure_testpipeline_${{ matrix.aligner }}" | ||
profiles: test | ||
parameters: | | ||
{ | ||
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}", | ||
"outdir": "${{ secrets.TOWER_BUCKET_AZURE }}/rnaseq/results-${{ github.sha }}/aligner_${{ matrix.aligner }}", | ||
"igenomes_base": "${{ secrets.TOWER_IGENOMES_BASE_AZURE }}" | ||
} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: Tower debug log file | ||
path: tower_action_*.log |
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,34 @@ | ||
{ | ||
"attachments": [ | ||
{ | ||
"fallback": "Plain-text summary of the attachment.", | ||
"color": "<% if (success) { %>good<% } else { %>danger<%} %>", | ||
"author_name": "sanger-tol/readmapping v${version} - ${runName}", | ||
"author_icon": "https://www.nextflow.io/docs/latest/_static/favicon.ico", | ||
"text": "<% if (success) { %>Pipeline completed successfully!<% } else { %>Pipeline completed with errors<% } %>", | ||
"fields": [ | ||
{ | ||
"title": "Command used to launch the workflow", | ||
"value": "```${commandLine}```", | ||
"short": false | ||
} | ||
<% | ||
if (!success) { %> | ||
, | ||
{ | ||
"title": "Full error message", | ||
"value": "```${errorReport}```", | ||
"short": false | ||
}, | ||
{ | ||
"title": "Pipeline configuration", | ||
"value": "<% out << summary.collect{ k,v -> k == "hook_url" ? "_${k}_: (_hidden_)" : ( ( v.class.toString().contains('Path') || ( v.class.toString().contains('String') && v.contains('/') ) ) ? "_${k}_: `${v}`" : (v.class.toString().contains('DateTime') ? ("_${k}_: " + v.format(java.time.format.DateTimeFormatter.ofLocalizedDateTime(java.time.format.FormatStyle.MEDIUM))) : "_${k}_: ${v}") ) }.join(",\n") %>", | ||
"short": false | ||
} | ||
<% } | ||
%> | ||
], | ||
"footer": "Completed at <% out << dateComplete.format(java.time.format.DateTimeFormatter.ofLocalizedDateTime(java.time.format.FormatStyle.MEDIUM)) %> (duration: ${duration})" | ||
} | ||
] | ||
} |
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
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
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
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