Skip to content

Commit f67ed41

Browse files
committed
add cli tests
1 parent c531d16 commit f67ed41

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Command-Line Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
run-tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.8", "3.9", "3.10", "3.11"]
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set Up Python ${{ matrix.python-version }}
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: ${{ matrix.python-version }}
20+
21+
- name: Install Dependencies
22+
run: |
23+
python -m venv venv
24+
source venv/bin/activate
25+
pip install --upgrade pip
26+
pip install . # Install project dependencies from pyproject.toml
27+
28+
- name: Run Test Script
29+
run: |
30+
chmod +x tests/test_clis.sh
31+
./tests/test_clis.sh

tests/test_clis.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
# Example command-line operations
3+
echo "Running membrain"
4+
membrain
5+
echo "Running membrain_pick"
6+
membrain_pick
7+
echo "Running membrain_stats"
8+
membrain_stats

0 commit comments

Comments
 (0)