From 7fc04b1f46bf3bb0f0b645c2a6ce2d41c34a2f59 Mon Sep 17 00:00:00 2001 From: Biriy Date: Sat, 24 Jan 2026 15:34:27 +0530 Subject: [PATCH 1/3] ci: add GitHub Actions workflow and basic smoke tests --- .github/workflows/ci.yml | 46 ++++++++++++++++++++++++++++++++++++++++ .gitignore | 12 +++++++---- tests/test_cli.py | 2 ++ tests/test_import.py | 2 ++ 4 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 tests/test_cli.py create mode 100644 tests/test_import.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8866429 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,46 @@ +name: CI + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ["3.10", "3.11"] + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + cache: "pip" + + - name: Upgrade pip + run: python -m pip install --upgrade pip + + - name: Install package with dev dependencies + run: | + pip install .[dev] + + - name: Check formatting (black) + run: | + black --check src + + - name: Lint (flake8) + run: | + flake8 src + + - name: Type check (mypy) + run: | + mypy src/voxcpm || true + + - name: Run tests + run: | + pytest diff --git a/.gitignore b/.gitignore index db6a136..70cfaa2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,8 @@ -launch.json -__pycache__ -voxcpm.egg-info -.DS_Store \ No newline at end of file +launch.json +__pycache__ +voxcpm.egg-info +.DS_Store + +build/ +dist/ +*.egg-info/ diff --git a/tests/test_cli.py b/tests/test_cli.py new file mode 100644 index 0000000..a4fa696 --- /dev/null +++ b/tests/test_cli.py @@ -0,0 +1,2 @@ +def test_cli_import(): + from voxcpm.cli import main diff --git a/tests/test_import.py b/tests/test_import.py new file mode 100644 index 0000000..a42c7c2 --- /dev/null +++ b/tests/test_import.py @@ -0,0 +1,2 @@ +def test_import_voxcpm(): + import voxcpm From e14dbc28ec7d92ab0c0d49a2da7283608eda3e1b Mon Sep 17 00:00:00 2001 From: Biriy Date: Sat, 24 Jan 2026 15:49:23 +0530 Subject: [PATCH 2/3] ci: remove black check to avoid large formatting changes --- .github/workflows/ci.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8866429..69c8afc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,10 +29,6 @@ jobs: run: | pip install .[dev] - - name: Check formatting (black) - run: | - black --check src - - name: Lint (flake8) run: | flake8 src From d1db3037268e2257491bf73cae4e131699f7092e Mon Sep 17 00:00:00 2001 From: Biriy Date: Sat, 24 Jan 2026 15:54:14 +0530 Subject: [PATCH 3/3] ci: make flake8 non-blocking for existing codebase --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69c8afc..2653e86 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: - name: Lint (flake8) run: | - flake8 src + flake8 src || true - name: Type check (mypy) run: |