Skip to content

Add numpy read/write for MgVideo/MgAudio and memory-based grid processing #104

Add numpy read/write for MgVideo/MgAudio and memory-based grid processing

Add numpy read/write for MgVideo/MgAudio and memory-based grid processing #104

Workflow file for this run

name: CI
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: "Python ${{ matrix.python-version }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies on macOS
if: runner.os == 'macOS'
run: brew install ffmpeg
- name: Install system dependencies on Ubuntu
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install system dependencies on Windows
if: runner.os == 'Windows'
run: choco install ffmpeg -y
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install package and dependencies
run: pip install -e ".[dev]"
- name: Test import
run: python -c "import musicalgestures; print('Import OK')"
- name: Run tests
run: pytest tests/ --tb=short -q
lint:
name: "Lint & type-check"
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install lint dependencies
run: pip install ruff mypy
- name: Ruff lint
run: ruff check musicalgestures/ --ignore E501 --exit-zero
- name: Ruff format check
run: ruff format --check musicalgestures/ || true
- name: Mypy type check
run: mypy musicalgestures/ --ignore-missing-imports --no-error-summary || true