-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (52 loc) · 1.73 KB
/
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
name: Run tests
on: [push, pull_request]
jobs:
unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Download miseq demo dataset
run: |
wget https://github.com/Illumina/interop/releases/download/v1.0.6/MiSeqDemo.zip
unzip MiSeqDemo.zip -d tests/data/
- name: Run tests with pytest
run: |
pip install pytest
pip install pytest-cov pylint
python -m pytest tests --doctest-modules -o junit_family=xunit2 \
--junitxml=test-results.xml \
--cov=bin tests/ --cov-report xml:coverage.xml
- name: publish coverage
uses: codecov/codecov-action@v1
with:
files: coverage.xml
integration:
runs-on: ubuntu-latest
env:
NXF_ANSI_LOG: 0
NXF_VER: 20.10.0
steps:
- uses: actions/checkout@v1
- name: Install Nextflow
run: |
wget -qO- get.nextflow.io | bash
sudo mv nextflow /usr/local/bin/
- name: Download miseq demo dataset
run: |
wget https://github.com/Illumina/interop/releases/download/v1.0.6/MiSeqDemo.zip
unzip MiSeqDemo.zip
- name: Test Pipeline
run: |
nextflow run main.nf -c nextflow.config -profile testing -w work/ -with-docker ubuntu:latest --runDir MiSeqDemo/ --reportsDir output
ls -l output/
test -f output/run_metrics.json
test -f output/percent_base.svg
cat output/run_metrics.json