-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (58 loc) · 1.91 KB
/
test-small.yml
File metadata and controls
70 lines (58 loc) · 1.91 KB
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
name: Small Integration Tests
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
permissions:
contents: read
jobs:
quick-test:
name: Quick Integration Test
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
zlib1g-dev \
libbz2-dev \
liblzma-dev \
samtools \
bcftools
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build project
run: cargo build --release
- name: Test help command
run: |
cargo run --release -- --help || true
cargo run --release -- quick-start --help || true
cargo run --release -- filter --help || true
cargo run --release -- build --help || true
cargo run --release -- correct --help || true
cargo run --release -- call --help || true
cargo run --release -- asm --help || true
cargo run --release -- methyl --help || true
- name: Test Himito quick-start command
run: |
if [ -f "test_data/HG005_100x.bam" ] && [ -f "test_data/HG005_100x.bai" ]; then
cargo run --release -- quick-start \
-i test_data/HG005_100x.bam \
-c "chrM" \
-k 21 \
--sampleid HG005 \
-r test_data/rCRS.fasta \
--output-prefix test_output/himito_test || echo "Himito test skipped - may require additional dependencies"
else
echo "Test data not available, skipping evaluate test"
fi
- name: Cleanup
if: always()
run: rm -rf test_output test_data