Skip to content
Open
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
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run Python Tests
on:
push:
branches:
- master
- tests
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python 3
run: |
sudo apt-get install python3
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Run tests with pytest
run: |
pytest
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

[![Run Python Tests](https://github.com/davidedelvento/Numula/actions/workflows/ci.yml/badge.svg)](https://github.com/davidedelvento/Numula/actions/workflows/ci.yml)


Numula: a Python library for creating nuanced music with MIDI.

See [the Wiki](https://github.com/davidpanderson/Numula/wiki)
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/test_notate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ def test1():
ns = Score()
ns.append_score([n(s)])
print(ns)
ns.write_midi('data/test1.midi')
ns.write_midi('./examples/data/test1.midi')

test1()
2 changes: 1 addition & 1 deletion examples/test_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def test1():
ns = Score(n('c d e f g a b c'))
ns.insert_pedal(PedalUse(4/4, 3/4, True))
ns.write_midi('data/test1.midi')
ns.write_midi('./examples/data/test1.midi')

test1()

File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@ classifiers = [
[project.urls]
"Homepage" = "https://github.com/davidpanderson/Numula"
"Bug Tracker" = "https://github.com/davidpanderson/Numula/issues"

[tool.pytest.ini_options]
pythonpath = [
"."
]
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
numpy
mido