-
Notifications
You must be signed in to change notification settings - Fork 5
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 #106 from grunwaldlab/template_merge
Template merge
- Loading branch information
Showing
140 changed files
with
5,181 additions
and
2,796 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,20 @@ | ||
{ | ||
"name": "nfcore", | ||
"image": "nfcore/gitpod:latest", | ||
"remoteUser": "gitpod", | ||
"runArgs": ["--privileged"], | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"python.defaultInterpreterPath": "/opt/conda/bin/python" | ||
}, | ||
|
||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"] | ||
} | ||
} | ||
} |
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,3 +1,4 @@ | ||
*.config linguist-language=nextflow | ||
*.nf.test linguist-language=nextflow | ||
modules/nf-core/** linguist-generated | ||
subworkflows/nf-core/** linguist-generated |
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,34 +1,56 @@ | ||
name: nf-core AWS full size tests | ||
# This workflow is triggered on published releases. | ||
# 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 AWS batch | ||
|
||
on: | ||
release: | ||
types: [published] | ||
pull_request: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
pull_request_review: | ||
types: [submitted] | ||
|
||
jobs: | ||
run-tower: | ||
run-platform: | ||
name: Run AWS full tests | ||
if: github.repository == 'nf-core/plantpathsurveil' | ||
# run only if the PR is approved by at least 2 reviewers and against the master branch or manually triggered | ||
if: github.repository == 'nf-core/plantpathsurveil' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Launch workflow via tower | ||
uses: nf-core/tower-action@v3 | ||
- 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 | ||
# TODO nf-core: You can customise AWS full pipeline tests as required | ||
# Add full size test data (but still relatively small datasets for few samples) | ||
# on the `test_full.config` test runs with only one set of parameters | ||
with: | ||
workspace_id: ${{ secrets.TOWER_WORKSPACE_ID }} | ||
access_token: ${{ secrets.TOWER_ACCESS_TOKEN }} | ||
compute_env: ${{ secrets.TOWER_COMPUTE_ENV }} | ||
revision: ${{ github.sha }} | ||
workdir: s3://${{ secrets.AWS_S3_BUCKET }}/work/plantpathsurveil/work-${{ github.sha }} | ||
parameters: | | ||
{ | ||
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}", | ||
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/plantpathsurveil/results-${{ github.sha }}" | ||
} | ||
profiles: test_full,aws_tower | ||
- uses: actions/upload-artifact@v3 | ||
profiles: test_full | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Tower debug log file | ||
path: tower_action_*.log | ||
name: Seqera Platform debug log file | ||
path: | | ||
seqera_platform_action_*.log | ||
seqera_platform_action_*.json |
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
Oops, something went wrong.