Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Command-Line Tests

on: [push, pull_request]

jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set Up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install . # Install project dependencies from pyproject.toml

- name: Run Test Script
run: |
source venv/bin/activate
chmod +x tests/test_clis.sh
./tests/test_clis.sh
11 changes: 11 additions & 0 deletions tests/test_clis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# Example command-line operations
echo "Running membrain"
membrain
membrain segment
membrain train
echo "Running membrain_pick"
membrain_pick
membrain_pick train
echo "Running membrain_stats"
membrain_stats