Skip to content

Commit

Permalink
Clean up main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorbaca committed Jan 23, 2025
1 parent 9b16dda commit 4d3643d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,33 @@ on:
jobs:
ci-tests:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ["3.12", "3.13"]
matrix: { python-version: ["3.12", "3.13"] }

steps:
- uses: actions/checkout@v4
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
with: { python-version: ${{ matrix.python-version }} }

- name: Write environment variables
run: |
export LILYPOND_VERSION=2.25.22
echo "LILYPOND_VERSION=${LILYPOND_VERSION}" >> $GITHUB_ENV
echo "PATH=/tmp/lilypond-${LILYPOND_VERSION}/bin:/home/runner/bin:$PATH" \
>> $GITHUB_ENV
echo "PYTHONUNBUFFERED=TRUE" >> $GITHUB_ENV
- name: Log environment variables
run: |
echo HOME: $HOME
echo GITHUB_WORKSPACE: $GITHUB_WORKSPACE
echo PATH: $PATH
echo PYTHONPATH: $PYTHONPATH
- name: Install LilyPond
run: |
lilypond_archive="lilypond-${LILYPOND_VERSION}-linux-x86_64.tar.gz"
Expand All @@ -53,6 +58,7 @@ jobs:
echo "Checksum verified successfully."
tar -xf "${lilypond_archive}"
lilypond --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip \
Expand All @@ -63,6 +69,7 @@ jobs:
isort==5.13.2 \
mypy==1.14.1 \
pytest==8.3.4
- name: Log dependencies
run: |
black --version
Expand All @@ -71,17 +78,20 @@ jobs:
mypy --version
pip --version
pytest --version
- name: Install Abjad
run: |
python -m pip install .[dev]
python -c "import abjad; print(abjad.Configuration().configuration_file_path)"
scr/prime-parser-tables
- name: Run checks
run: |
make black-check
make flake8
make isort-check
make mypy
- name: Run tests
run: |
make pytest

0 comments on commit 4d3643d

Please sign in to comment.