-
Notifications
You must be signed in to change notification settings - Fork 3
89 lines (73 loc) · 2.16 KB
/
main.yml
File metadata and controls
89 lines (73 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: baca
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
MYPYPATH: /tmp/abjad:/tmp/rmakers
PYTHONUNBUFFERED: TRUE
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
lilypond-version: ["2.25.26"]
python-version: ["3.12", "3.13"]
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Write environment variables
run: |
PATH="/tmp/lilypond-${{ matrix.lilypond-version }}/bin:home/runner/bin:$PATH"
echo "PATH=$PATH" >> $GITHUB_ENV
- name: Log environment variables
run: |
echo "HOME: $HOME"
echo "GITHUB_WORKSPACE: $GITHUB_WORKSPACE"
echo "MYPYPATH: $MYPYPATH"
echo "PATH: $PATH"
echo "PYTHONUNBUFFERED: ${PYTHONUNBUFFERED:-not set}"
echo "PYTHONPATH: ${PYTHONPATH:-not set}"
- name: Install LilyPond
uses: Abjad/install-lilypond@main
with:
lilypond-version: ${{ matrix.lilypond-version }}
- name: Install trevor/dev branch of Abjad
run: |
# [dev] for black, flake8, isort, mypy, pytest
git clone -b trevor/dev https://github.com/Abjad/abjad.git /tmp/abjad
python -m pip install --upgrade pip
python -m pip install /tmp/abjad[dev]
- name: Log Python dependencies
run: |
black --version
flake8 --version
isort --version
mypy --version
pip --version
pytest --version
- name: Prime parser tables
run: /tmp/abjad/scripts/prime_parser_tables.py
- name: Install rmakers
run: |
git clone https://github.com/Abjad/rmakers.git /tmp/rmakers
python -m pip install /tmp/rmakers
- name: Install this package
run: |
# -e for pytest to function correctly
python -m pip install -e .
- name: Run lints
run: |
make black-check
make flake8
make isort-check
make mypy
- name: Run pytest
run: |
make pytest