Skip to content

Commit 2669521

Browse files
committed
chore: setup ci
1 parent b41bfca commit 2669521

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

.github/actions/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build
20+
run: cargo build --verbose
21+
- name: Run tests
22+
run: cargo test --verbose

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ struct Cli {
3939

4040
#[derive(Subcommand)]
4141
enum Commands {
42+
/// Specify input through the paths of four files.
4243
Files {
4344
/// The tab-separated interactome, without a header, containing (a, b) := a -> b directed pairs
4445
/// with weights - e.g. `SOME_NODE_A\tSOME_NODE_B\t0.683`
@@ -50,7 +51,9 @@ enum Commands {
5051
/// The targets Growing DAGs should try to end at.
5152
targets: PathBuf,
5253
},
54+
/// Specify input through a single, containing folder.
5355
Folder {
56+
/// The folder containing an interactome.txt, dag.txt, sources.txt, and targets.txt
5457
path: PathBuf
5558
}
5659
}

0 commit comments

Comments
 (0)