-
Notifications
You must be signed in to change notification settings - Fork 3
73 lines (63 loc) · 1.77 KB
/
dryrun.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
name: dry run CI
on:
push:
branches:
- main
pull_request:
branches:
- main
- dev
env:
NXF_ANSI_LOG: false
jobs:
test:
name: Dry run ${{ matrix.inputtype }}-${{ matrix.profile }}-nf_${{ matrix.NXF_VER }} pipeline test
runs-on: ubuntu-latest
strategy:
matrix:
NXF_VER:
- "23.04.1"
- "latest"
inputtype:
- fasta
- illumina
- nanopore
profile: ["docker", "conda"] # TODO "singularity"]
python-version:
- "3.9"
steps:
- name: Check out pipeline code
uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: /usr/local/bin/nextflow
key: ${{ runner.os }}
restore-keys: |
${{ runner.os }}-nextflow-
- name: Install Nextflow
uses: nf-core/setup-nextflow@v2
with:
version: "${{ matrix.NXF_VER }}"
- name: Install nf-test
run: |
wget -qO- https://code.askimed.com/install/nf-test | bash
sudo mv nf-test /usr/local/bin/
- name: Set up Singularity
if: matrix.profile == 'singularity'
uses: eWaterCycle/setup-singularity@v7
with:
singularity-version: 3.7.1
- name: Set up miniconda
if: matrix.profile == 'conda'
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
conda-solver: libmamba
channels: conda-forge,bioconda,defaults
python-version: ${{ matrix.python-version }}
- name: Run nf-test
run: nf-test test --profile=${{ matrix.profile }} tests/${{ matrix.inputtype }}/*.nf.test --tap=test.tap
- uses: pcolby/tap-summary@v1
with:
path: >-
test.tap