-
Notifications
You must be signed in to change notification settings - Fork 223
merge to main for patch 3.2.1 #3546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
aff6853
template: downgrade nf-schema to fix CI tests
mashehu 1a2b643
[automated] Update CHANGELOG.md
nf-core-bot 49280ef
run awsfulltest after release, and with dev revision on PRs to master
mirpedrol 15cf1f4
fix jinja template
mirpedrol c761c0e
update linting of actions_awsfulltest
mirpedrol 660d734
remove not available branches on pull_request_review
mirpedrol 87c1324
remove checking number of approvals
mirpedrol aac57cb
adding jinja template raw
mirpedrol 4093d36
fix nf-test-tests branch
mirpedrol 4c91928
bump version to 3.2.1
mashehu 32a8d21
bump version to 3.2.1
mashehu 511126a
fail ci.yml gracefully on latest-everything
mashehu 31b4d43
Merge branch 'patch-3.2.1' of github.com:mirpedrol/tools into patch-3…
mashehu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -4,60 +4,39 @@ name: nf-core AWS full size tests | |
| # It runs the -profile 'test_full' on AWS batch | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - master | ||
| workflow_dispatch: | ||
| pull_request_review: | ||
| types: [submitted] | ||
| release: | ||
| types: [published] | ||
|
|
||
| jobs: | ||
| run-platform: | ||
| name: Run AWS full tests | ||
| # run only if the PR is approved by at least 2 reviewers and against the master branch or manually triggered | ||
| if: github.repository == '{{ name }}' && github.event.review.state == 'approved' && github.event.pull_request.base.ref == 'master' || github.event_name == 'workflow_dispatch' | ||
| # run only if the PR is approved by at least 2 reviewers and against the master/main branch or manually triggered | ||
| if: github.repository == '{{ name }}' && github.event.review.state == 'approved' && (github.event.pull_request.base.ref == 'master' || github.event.pull_request.base.ref == 'main') || github.event_name == 'workflow_dispatch' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Get PR reviews | ||
| uses: octokit/[email protected] | ||
| if: github.event_name != 'workflow_dispatch' | ||
| id: check_approvals | ||
| continue-on-error: true | ||
| with: | ||
| route: GET /repos/{%- raw -%}${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/reviews?per_page=100 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Check for approvals | ||
| if: ${{ failure() && github.event_name != 'workflow_dispatch' }} | ||
| run: | | ||
| echo "No review approvals found. At least 2 approvals are required to run this action automatically." | ||
| exit 1 | ||
|
|
||
| - name: Check for enough approvals (>=2) | ||
| id: test_variables | ||
| if: github.event_name != 'workflow_dispatch' | ||
| - name: Set revision variable | ||
| id: revision | ||
| run: | | ||
| JSON_RESPONSE='${{ steps.check_approvals.outputs.data }}'{% endraw %} | ||
| 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 | ||
| echo "revision={%- raw -%}${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'release') && github.sha || 'dev' }}" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - 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 {%- raw %} | ||
| # 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 }}{% endraw %}/work/{{ short_name }}/{% raw %}work-${{ github.sha }}{% endraw %} | ||
| revision: ${{ steps.revision.outputs.revision }} | ||
| workdir: s3://${{ secrets.AWS_S3_BUCKET }}{% endraw %}/work/{{ short_name }}/{% raw %}work-${{ steps.revision.outputs.revision }}{% endraw %} | ||
| parameters: | | ||
| { | ||
| "hook_url": "{% raw %}${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}{% endraw %}", | ||
| "outdir": "s3://{% raw %}${{ secrets.AWS_S3_BUCKET }}{% endraw %}/{{ short_name }}/{% raw %}results-${{ github.sha }}{% endraw %}" | ||
| "outdir": "s3://{% raw %}${{ secrets.AWS_S3_BUCKET }}{% endraw %}/{{ short_name }}/{% raw %}results-${{ steps.revision.outputs.revision }}{% endraw %}" | ||
| } | ||
| profiles: test_full | ||
|
|
||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
JulianFlesch marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.