-
Notifications
You must be signed in to change notification settings - Fork 73
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 #323 from nf-core/nf-core-template-merge-3.0.2
Important! Template update for nf-core/tools v3.0.2
- Loading branch information
Showing
51 changed files
with
1,150 additions
and
983 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
name: full-sized tests on cloud providers | ||
name: nf-core cloud full size tests | ||
# This workflow is triggered on PRs opened against the master branch. | ||
# It can be additionally triggered manually with GitHub actions workflow dispatch button. | ||
# It runs the -profile 'test_full' on Cloud | ||
run-name: Submitting workflow to all cloud providers using full sized data | ||
on: | ||
release: | ||
types: [published] | ||
pull_request: | ||
branches: | ||
- master | ||
pull_request_review: | ||
types: [submitted] | ||
workflow_dispatch: | ||
inputs: | ||
platform: | ||
|
@@ -17,13 +23,27 @@ on: | |
- gcp | ||
jobs: | ||
run-full-tests-on-aws: | ||
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'aws' || !github.event.inputs }} | ||
name: Run AWS full tests | ||
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'aws' || !github.event.inputs }} || github.repository == 'nf-core/fetchngs' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
download_method: ["aspera", "ftp", "sratools"] | ||
steps: | ||
- uses: seqeralabs/action-tower-launch@v2 | ||
- uses: octokit/[email protected] | ||
id: check_approvals | ||
with: | ||
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- id: test_variables | ||
if: github.event_name != 'workflow_dispatch' | ||
run: | | ||
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}' | ||
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length') | ||
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required | ||
- name: Launch workflow via Seqera Platform | ||
uses: seqeralabs/action-tower-launch@v2 | ||
with: | ||
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }} | ||
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }} | ||
|
@@ -44,13 +64,27 @@ jobs: | |
path: tower_action_*.log | ||
|
||
run-full-tests-on-azure: | ||
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'azure' || !github.event.inputs }} | ||
name: Run Azure full tests | ||
if: ${{ github.event.inputs.platform == 'all' || github.event.inputs.platform == 'azure' || !github.event.inputs }} || github.repository == 'nf-core/fetchngs' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
download_method: ["aspera", "ftp", "sratools"] | ||
steps: | ||
- uses: seqeralabs/action-tower-launch@v2 | ||
- uses: octokit/[email protected] | ||
id: check_approvals | ||
with: | ||
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- id: test_variables | ||
if: github.event_name != 'workflow_dispatch' | ||
run: | | ||
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}' | ||
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length') | ||
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required | ||
- name: Launch workflow via Seqera Platform | ||
uses: seqeralabs/action-tower-launch@v2 | ||
with: | ||
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }} | ||
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }} | ||
|
@@ -71,13 +105,27 @@ jobs: | |
path: tower_action_*.log | ||
|
||
run-full-tests-on-gcp: | ||
if: ${{ github.event.inputs.platform == 'gcp' || !github.event.inputs }} | ||
name: Run GCP full tests | ||
if: ${{ github.event.inputs.platform == 'gcp' || !github.event.inputs }} || github.repository == 'nf-core/fetchngs' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
download_method: ["aspera", "ftp", "sratools"] | ||
steps: | ||
- uses: seqeralabs/action-tower-launch@v2 | ||
- uses: octokit/[email protected] | ||
id: check_approvals | ||
with: | ||
route: GET /repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- id: test_variables | ||
if: github.event_name != 'workflow_dispatch' | ||
run: | | ||
JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}' | ||
CURRENT_APPROVALS_COUNT=$(echo $JSON_RESPONSE | jq -c '[.[] | select(.state | contains("APPROVED")) ] | length') | ||
test $CURRENT_APPROVALS_COUNT -ge 2 || exit 1 # At least 2 approvals are required | ||
- name: Launch workflow via Seqera Platform | ||
uses: seqeralabs/action-tower-launch@v2 | ||
with: | ||
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }} | ||
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }} | ||
|
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
Oops, something went wrong.