forked from connor-lab/ncov2019-artic-nf
-
Notifications
You must be signed in to change notification settings - Fork 1
75 lines (66 loc) · 1.97 KB
/
ci-test.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
#####################################
# Nextflow CI Test for NML Pipeline #
#####################################
name: ncov2019-artic-nf NML CI
on:
pull_request: # Run on all pull requests
push:
branches: master
schedule: # Run master on 5th of each month
- cron: 0 6 5 * *
branches: master
jobs:
pipeline-test:
name: ncov2019-artic-nf nanopore CI tests
runs-on: ubuntu-latest
# For conda
defaults:
run:
shell: bash -el {0}
steps:
# Setup repo
- uses: actions/checkout@v3
- name: Create artifacts dir
run: mkdir -p artifacts
# Add conda, mamba, and nextflow
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2.2.0
with:
miniconda-version: "latest"
activate-environment: nextflow
python-version: 3.8
mamba-version: "*"
use-mamba: true
channels: conda-forge,bioconda,defaults
- name: Install Nextflow
run: |
mamba install nextflow
- name: Nextflow Version
run: |
nextflow -v
conda --version
# Check how repo looks incase there is an issue
- name: List Files
run: |
ls -al ${{ github.workspace }}
# Run Help Command
- name: Pipeline Help CMD
run: |
nextflow run ./main.nf --help
# Unzip fast5s to run
- name: Unzip fast5 files
run: |
cd .github/data/nanopore/fast5_pass/barcode78/
gunzip *.fast5.gz
cd -
# Run Pipelines
- name: Run Nanopore Nanopolish with metadata
run: .github/scripts/test_nml_nanopore_nanopolish.sh
- name: Run Nanopore Nanopolish with no metadata
run: .github/scripts/test_nml_nanopore_nanopolish.sh --no_metadata
- name: Run Nanopore Medaka with metadata
run: .github/scripts/test_nml_nanopore_medaka.sh
- name: Run Nanopore Medaka flat
run: .github/scripts/test_nml_nanopore_medaka_flat.sh
- name: Done Pipelines
run: echo "Done running pipelines"