Skip to content

Some state mapping logic #16

Some state mapping logic

Some state mapping logic #16

Workflow file for this run

# Github workflow to test compositions
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
LILYPOND_VERSION: 2.25.16
PANG_COMMIT: 63a6320d8bd680feffcb6d22e5743bf9d9ed28af
PANG_PATH: /tmp/pang
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
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: Install LilyPond
run: |
lilypond_archive=lilypond-${LILYPOND_VERSION}-linux-x86_64.tar.gz
lilypond_url=https://gitlab.com/lilypond/lilypond/-/releases
lilypond_url=${lilypond_url}/v${LILYPOND_VERSION}/downloads/${lilypond_archive}
echo ${lilypond_url}
cd /tmp
wget -q ${lilypond_url}
tar -xf ${lilypond_archive}
- name: Upgrade pip
run: |
python -m pip install --upgrade pip coverage
- name: Log environment variable(s)
run: |
echo $PATH
- name: Install Pang
run: |
git clone https://github.com/nivlekp/pang.git ${PANG_PATH}
cd ${PANG_PATH}
git checkout ${PANG_COMMIT}
pip install ${PANG_PATH}
- name: Install dependencies
run: |
export PATH=/tmp/lilypond-${LILYPOND_VERSION}/bin:/home/runner/bin:$PATH
python -m pip install -e .[test]
black --version
flake8 --version
isort --version
pip --version
pytest --version
lilypond --version
- name: Checks and Tests
run: |
export MYPYPATH=$MYPYPATH:${PANG_PATH}
export PATH=/tmp/lilypond-${LILYPOND_VERSION}/bin:/home/runner/bin:$PATH
make black-check
make flake8
make isort-check
make pytest
make mypy