Drafts state ideas #1
Workflow file for this run
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
# Github workflow to test compositions | |
name: build | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
LILYPOND_VERSION: 2.25.16 | |
PANG_COMMIT: b5dc6468810789ed8cf79136a7f0a31932904400 | |
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 PATH=/tmp/lilypond-${LILYPOND_VERSION}/bin:/home/runner/bin:$PATH | |
make black-check | |
make flake8 | |
make isort-check | |
make pytest |