mirror of
https://github.com/kennethreitz/pytheory.git
synced 2026-07-21 18:19:30 +00:00
e8e7cdca80
Relocate test_pytheory.py to tests/test_pytheory.py and point the Makefile, CI workflow, and CLAUDE.md at tests/. Add pytest testpaths so a bare 'pytest' targets the folder — and so future split-out test files are picked up automatically. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
33 lines
784 B
YAML
33 lines
784 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install PortAudio (sounddevice's Linux wheels don't bundle it)
|
|
run: sudo apt-get update && sudo apt-get install -y libportaudio2
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v4
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
run: uv python install ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: uv sync --python ${{ matrix.python-version }}
|
|
|
|
- name: Run tests
|
|
run: uv run --python ${{ matrix.python-version }} pytest tests/ -v
|