Skip to content
Closed
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
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
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: Lint (flake8)
run: |
flake8 src || true

- name: Type check (mypy)
run: |
mypy src/voxcpm || true

- name: Run tests
run: |
pytest
12 changes: 8 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
launch.json
__pycache__
voxcpm.egg-info
.DS_Store
launch.json
__pycache__
voxcpm.egg-info
.DS_Store

build/
dist/
*.egg-info/
2 changes: 2 additions & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_cli_import():
from voxcpm.cli import main
2 changes: 2 additions & 0 deletions tests/test_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_import_voxcpm():
import voxcpm