Skip to content
Merged
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
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: checkout code
uses: actions/checkout@v4
- name: Install UV
uses: astral-sh/setup-uv@v5
- name: install sys dependencies
run: |
sudo apt-get update
sudo apt-get install -y libasound2-dev libjack-dev
- name: Install the project
run: uv sync --group test
- name: Run tests
run: uv run pytest tests
17 changes: 15 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
[project]
name = "text2synth"
version = "0.1.0"
description = "Text2synth, a POC to program a synth sound from text"
readme = "README.md"
requires-python = ">=3.10.9"
requires-python = ">=3.11"
authors = [
{ name = "David Cournapeau", email = "cournape@gmail.com" }
]
dependencies = [
"mido>=1.3.3",
"pydantic>=2.11.10",
"pydantic-ai-slim[anthropic]>=1.0.15",
"pytest>=8.4.2",
"python-rtmidi>=1.5.8",
]
dynamic = ["version"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "src/text2synth/_version.py"

[dependency-groups]
dev = [
"ipython>=9",
{ include-group = "test" },
]
test = [
"pytest>=8.3.5",
"pytest-cov>=6.2.1",
Expand Down
2 changes: 2 additions & 0 deletions src/text2synth/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__version__ = "0.0.1"

1 change: 0 additions & 1 deletion tests/test_state.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pathlib


from text2synth.patch import JU06APatch
from text2synth.state import JU06AState


Expand Down
Loading