-
Notifications
You must be signed in to change notification settings - Fork 37
86 lines (73 loc) · 2.52 KB
/
diann_private.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Fork-specific CI for test_latest_dia
# Trigger only for your fork and the 'test_latest_dia' test profile
on:
push:
branches:
- dev
pull_request:
branches:
- dev
paths:
- "**.yml"
env:
NXF_ANSI_LOG: false
concurrency:
group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}"
cancel-in-progress: true
jobs:
test:
name: Run test_latest_dia with Docker
runs-on: ubuntu-latest
env:
NXF_ANSI_LOG: false
CAPSULE_LOG: none
TEST_PROFILE: test_latest_dia
EXEC_PROFILE: docker
# Ensure this workflow only runs for your fork
if: ${{ github.repository == 'ypriverol/quantms' }}
steps:
- name: Check out pipeline code
uses: actions/checkout@v4
- name: Set up Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "24.04.2" # Or the Nextflow version you prefer
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Run test_latest_dia with Docker
run: |
nextflow run ${GITHUB_WORKSPACE} -profile $TEST_PROFILE,$EXEC_PROFILE --outdir ${TEST_PROFILE}_${EXEC_PROFILE}_results
- name: Gather failed logs
if: failure() || cancelled()
run: |
mkdir failed_logs
failed=$(grep "FAILED" ${TEST_PROFILE}_${EXEC_PROFILE}_results/pipeline_info/execution_trace.txt | cut -f 2)
while read -r line ; do cp $(ls work/${line}*/*.log) failed_logs/ | true ; done <<< "$failed"
- uses: actions/upload-artifact@v4
if: failure() || cancelled()
name: Upload failed logs
with:
name: failed_logs_${{ matrix.test_profile }}_${{ matrix.exec_profile }}
include-hidden-files: true
path: failed_logs
overwrite: false
- uses: actions/upload-artifact@v4
if: always()
name: Upload results
with:
name: ${{ matrix.test_profile }}_${{ matrix.exec_profile }}_results
include-hidden-files: true
path: ${{ matrix.test_profile }}_${{ matrix.exec_profile }}_results
overwrite: false
- uses: actions/upload-artifact@v4
if: always()
name: Upload log
with:
name: nextflow_${{ matrix.test_profile }}_${{ matrix.exec_profile }}.log
include-hidden-files: true
path: .nextflow.log
overwrite: false