Skip to content

add ci

add ci #1

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: |
python -m pip install uv
python -m uv pip install --system .[dev]
# - name: Run linters
# run: |
# ruff check src/mel_cepstral_distance
# ruff check src/mel_cepstral_distance_tests
# - name: Type checking
# run: mypy
- name: Run tests
run: |
pytest -m "not repro and (not litert and not gpu)" -n auto
pytest -m "not repro and litert" -n auto
- name: Test build
run: |
python -m build -o dist/
python -m twine check dist/*