-
Notifications
You must be signed in to change notification settings - Fork 526
61 lines (58 loc) · 2.22 KB
/
awstest.yml
File metadata and controls
61 lines (58 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: nf-core AWS test
# This workflow can be triggered manually with the GitHub actions workflow dispatch button.
# It runs the -profile 'test' on AWS batch
on:
release:
types: [created]
workflow_dispatch:
inputs:
profiletest:
description: "Trigger profile tests (smaller) on AWS"
type: boolean
default: true
somatic:
description: "Trigger somatic full test on AWS"
type: boolean
default: false
germline:
description: "Trigger germline full test on AWS"
type: boolean
default: false
jobs:
trigger-profile-test:
name: Run AWS tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- profile: test
enabled: ${{ ( github.repository == 'nf-core/sarek' ) && ( github.event_name != 'workflow_dispatch' || inputs.profiletest ) }}
- profile: test_full
enabled: ${{ ( github.repository == 'nf-core/sarek' ) && ( github.event_name != 'workflow_dispatch' || inputs.somatic ) }}
- profile: test_full_germline
enabled: ${{ ( github.repository == 'nf-core/sarek' ) && ( github.event_name != 'workflow_dispatch' || inputs.germline ) }}
steps:
# Launch workflow using Tower CLI tool action
- name: Launch workflow via tower
uses: seqeralabs/action-tower-launch@v2
if: ${{ matrix.enabled }}
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/sarek/work-${{ github.sha }}/${{ matrix.profile }}
parameters: |
{
"hook_url": "${{ secrets.MEGATESTS_ALERTS_SLACK_HOOK_URL }}",
"outdir": "s3://${{ secrets.AWS_S3_BUCKET }}/sarek/results-test-${{ github.sha }}/${{ matrix.profile }}"
}
profiles: ${{ matrix.profile }}
- uses: actions/upload-artifact@v3
if: ${{ matrix.enabled }}
with:
name: tower-${{ matrix.profile }}-log
path: |
tower_action_*.log
tower_action_*.json