Skip to content

Commit 27c4c96

Browse files
committed
testing the example as workflow
1 parent 5a7cb63 commit 27c4c96

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/run_example.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Example Test Dataset
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test-example-dataset:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v6
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install .
24+
25+
- name: Download LUCA.h5
26+
run: wget https://omabrowser.org/All/LUCA.h5
27+
28+
- name: Run omamer search
29+
run: |
30+
mkdir output
31+
omamer search \
32+
--db LUCA.h5 \
33+
--query example_data/UP000005640_9606.fasta \
34+
--output output/UP000005640_9606.omamer
35+
36+
- name: Run omark
37+
run: |
38+
omark \
39+
-f output/UP000005640_9606.omamer \
40+
-d LUCA.h5 \
41+
-o output/omark_output
42+
43+
- name: Compare output with expected
44+
run: diff output/UP000005640_9606.sum example_data/omark_output/UP000005640_9606.sum

0 commit comments

Comments
 (0)