-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (63 loc) · 1.83 KB
/
Copy pathpython_examples.yml
File metadata and controls
77 lines (63 loc) · 1.83 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
70
71
72
73
74
75
76
77
name: Python examples
on:
push:
branches:
- main
pull_request:
branches:
- '**'
workflow_dispatch:
jobs:
build-and-test:
name: Python examples
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
py: "3.10"
sys_install: "sudo apt -y update && sudo apt -y install libboost-iostreams-dev"
- os: macos-15
py: "3.13"
sys_install: "brew install boost"
steps:
- name: checkout repo & submodules
uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- name: install deps
run: |
${{ matrix.sys_install }}
- name: Set up Python ${{ matrix.py }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.py }}
- name: install python bindings
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install .
- name: prepare example
run: |
prepare_example
- name: regular ARG-Needle
run: |
infer_args
- name: ARG-Needle with ASMC-clust
run: |
infer_args --asmc_clust 1
- name: ARG-Needle without ARG normalization
run: |
infer_args --normalize 0
- name: ARG-Needle (sequence mode)
run: |
prepare_example --mode sequence --length 5e5
infer_args --mode sequence
- name: ARG-Needle advanced mode (multistep)
run: |
prepare_example
infer_args_advanced --step 1 --num_snp_samples 200
infer_args_advanced --step 2
infer_args_advanced --step 3 --trim_num_snps 0,50