-
Notifications
You must be signed in to change notification settings - Fork 95
135 lines (109 loc) · 3.35 KB
/
integration_tests.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: Run Integration Tests
on:
push:
pull_request:
types: [opened, reopened]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
env:
CRISPRESSO2_DIR: ${GITHUB_WORKSPACE}/../CRISPResso2_copy
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Setup Conda Env
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test_env
channels: conda-forge,bioconda,defaults
auto-activate-base: false
use-mamba: true
- name: Get Date
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash
- name: Cache Conda Env
id: cache-env
uses: actions/cache@v3
env:
# Increase this number to reset the cache if envs/test_env.yml hasn't changed
CACHE_NUMBER: 0
with:
path: /usr/share/miniconda/envs/test_env
key: conda-${{ runner.os }}--${{ runner.arch }}--${{ steps.get-date.outputs.today }}-${{ env.CACHE_NUMBER }}-${{ hashFiles('.github/envs/test_env.yml') }}
- name: Update Conda Env
run: |
conda env update -n test_env -f .github/envs/test_env.yml
if: steps.cache-env.outputs.cache-hit != 'true'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ bowtie2 samtools libsys-hostname-long-perl
conda list
- name: Create directory for files
run: |
mkdir ../CRISPResso2_copy
cp -r * ../CRISPResso2_copy
- name: Copy C2_tests repo
uses: actions/checkout@v3
with:
repository: edilytics/CRISPResso2_tests
# ref: '<BRANCH-NAME>' # update to specific branch
- name: Run Basic
run: |
make basic test print
- name: Run Params
if: success() || failure()
run: |
make params test print
- name: Run Prime Editor
if: success() || failure()
run: |
make prime-editor test print
- name: Run BAM Input
if: success() || failure()
run: |
make bam test print
- name: Run BAM Output
if: success() || failure()
run: |
make bam-out test print
- name: Run BAM Genome Output
if: success() || failure()
run: |
make bam-out-genome test print
- name: Run Batch
if: success() || failure()
run: |
make batch test print
- name: Run Pooled
if: success() || failure()
run: |
make pooled test print
- name: Run Pooled Mixed Mode
if: success() || failure()
run: |
make pooled-mixed-mode test print
- name: Run Pooled Mixed Mode Demux
if: success() || failure()
run: |
make pooled-mixed-mode-genome-demux test print
- name: Run Pooled Paired Sim
if: success() || failure()
run: |
make pooled-paired-sim test print
- name: Run WGS
if: success() || failure()
run: |
make wgs test print
- name: Run Compare
if: success() || failure()
run: |
make compare test print
- name: Run Aggregate
if: success() || failure()
run: |
make aggregate test print