-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 995 Bytes
/
ci.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
name: nf-purple CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test_pipeline:
runs-on: ubuntu-latest
name: Job to run the test workflow
steps:
- uses: actions/checkout@v3
- uses: nf-core/setup-nextflow@v1
- name: Install nf-test
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
sudo mv nf-test /usr/local/bin/
- name: Pull Docker image and cache
run: |
docker pull papaemmelab/purple:v0.1.0
- name: Run test data
run: |
nextflow run main.nf -profile cloud \
--tumor TEST \
--tumorBam `pwd`/tests/data/tumor.bam \
--refGenome `pwd`/tests/data/reference.fasta \
--outdir /app/results
- name: Check result
run: |
if [ ! -f /app/results/TEST.purple.purity.tsv ]; then
echo "Result 'TEST.purple.purity.tsv' does not exist"
exit 1
fi