-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (55 loc) · 1.86 KB
/
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
name: Run basic tests for Lemur
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
test:
name: Test Lemur executable
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12]
steps:
- uses: actions/checkout@v4
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: ./lemur.yml
activate-environment: lemur-env
python-version: 3.9
- name: Create output folder
run: |
mkdir ./examples/example-output
- name: Run Lemur
run: ./lemur -i ./examples/example-data/example.fastq
-o ./examples/example-output
-d ./examples/example-db
--tax-path ./examples/example-db/taxonomy.tsv
-r species
--verbose;
- name: Check that output was produced
id: check_files
uses: andstor/[email protected]
with:
files: "./examples/example-output/P_rgs_df.tsv, ./examples/example-output/relative_abundance.tsv, ./examples/example-output/relative_abundance-species.tsv"
fail: true
- name: Check if outputed profile matches reference
uses: LouisBrunner/[email protected]
with:
old: ./examples/example-output-ref/relative_abundance.tsv
new: ./examples/example-output/relative_abundance.tsv
mode: strict
tolerance: same
output: ./examples/example-output/relative_abundance_diff.txt
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: lemur-out-log
path: ./examples/example-output/*
retention-days: 5