Merge pull request #71 from Abjad/nivlekp/test-ci #133
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 Abjad | |
name: abjad-ext-nauert | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install LilyPond | |
run: | | |
lilypond_url=http://lilypond.org/download/binaries/linux-64/ | |
lilypond_source=lilypond-2.23.0-1.linux-64.sh | |
wget -q -O /tmp/lilypond $lilypond_url/$lilypond_source | |
sh /tmp/lilypond --batch | |
- name: Upgrade pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install Abjad | |
run: | | |
git clone https://github.com/Abjad/abjad.git /tmp/abjad | |
pip install /tmp/abjad[dev] | |
- name: Install dependencies | |
run: | | |
python -m pip install -e . | |
black --version | |
flake8 --version | |
isort --version | |
mypy --version | |
pip --version | |
pytest --version | |
- name: Checks and Tests | |
run: | | |
export MYPYPATH=$MYPYPATH:/tmp/abjad | |
echo $MYPYPATH | |
make black-check | |
make flake8 | |
make isort-check | |
make mypy | |
make pytest |