Skip to content

Add GitHub Actions CI for automated linting and testing #1

Add GitHub Actions CI for automated linting and testing

Add GitHub Actions CI for automated linting and testing #1

Workflow file for this run

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