diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3c25794 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file diff --git a/tests/test_clis.sh b/tests/test_clis.sh new file mode 100644 index 0000000..d2c6a3a --- /dev/null +++ b/tests/test_clis.sh @@ -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 \ No newline at end of file