-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
828cd21
commit b41d7ec
Showing
20 changed files
with
1,099 additions
and
765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
on: [push] | ||
|
||
|
||
jobs: | ||
alltests: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ["windows-latest", "macos-latest", "ubuntu-latest"] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
install-method: ["git", "pip"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: windows setup | ||
if: runner.os == 'windows' | ||
run: | | ||
curl -L -o csound-binaries.zip https://github.com/csound/csound/releases/download/6.18.1/Csound-6.18.1-windows-x64-binaries.zip | ||
Expand-Archive csound-binaries.zip -DestinationPath "C:\Program Files\csound-binaries" | ||
ls -r "C:\Program Files\csound-binaries" | ||
[Environment]::SetEnvironmentVariable("PATH", $Env:PATH + ";C:\Program Files\csound-binaries\build\Release", [EnvironmentVariableTarget]::Machine) | ||
$Env:Path = $Env:Path + ";C:\Program Files\csound-binaries\build\Release" | ||
Write-Output $Env:PATH | ||
csound.exe --version | ||
mkdir artifacts | ||
- name: linux setup | ||
if: runner.os == 'linux' | ||
run: | | ||
set -x | ||
# sudo apt update | ||
# sudo apt install lilypond | ||
sudo apt install csound libcsnd-dev | ||
csound --version | ||
# lilypond --version | ||
- name: macos setup | ||
if: runner.os == 'macOs' | ||
run: | | ||
set -x | ||
curl -L -o csound6.18.dmg https://github.com/csound/csound/releases/download/6.18.1/Csound-MacOS-universal-6.18.1.dmg | ||
brew install p7zip | ||
7z x csound6.18.dmg | ||
cd Csound-universal-6.18.1 | ||
sudo installer -pkg csound-MacOS-universal-6.18.1.pkg -target / | ||
csound --version | ||
cd .. | ||
# brew install lilypond | ||
# lilypond --version | ||
- name: install from repo | ||
if: ${{ matrix.install-method == 'git' }} | ||
run: | | ||
pip install . | ||
- name: install from pip | ||
if: ${{ matrix.install-method == 'pip' }} | ||
run: | | ||
pip install maelzel | ||
- name: test | ||
run: | | ||
cd test | ||
python test-rec.py -o test-rec--windows-${{ matrix.install-method }}.wav | ||
python test-dependencies.py | ||
python test-notation.py -o 'test-notation-${{ matrix.os }}-${{ matrix.install-method }}-${{ matrix.python-version }}.pdf' | ||
cp *.wav ../artifacts | ||
cp *.pdf ../artifacts | ||
# new tests | ||
python test-clip-chords.py | ||
python rosita-centroid.py | ||
cp output/* ../artifacts | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: artifacts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
Utils used by coreconfig. Cannot import from anything within maelzel.core | ||
""" | ||
|
||
from maelzel.common import F | ||
|
||
|
||
def isValidFraction(obj) -> bool: | ||
""" | ||
True if obj can be interpreted as Fraction | ||
""" | ||
try: | ||
frac = F(obj) | ||
return True | ||
except Exception: | ||
return False | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.