-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (39 loc) · 1.1 KB
/
partitura_unittests.yml
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
name: Partitura Unittests
on:
push:
branches: [main, develop]
pull_request:
branches: [develop]
jobs:
test:
strategy:
max-parallel: 5
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install .
- name: Install Optional dependencies
run: |
pip install music21==8.3.0 Pillow==9.5.0 musescore==0.0.1
pip install miditok==2.0.6 tokenizers==0.13.3 pandas==2.0.3
- name: Run Tests
run: |
pip install coverage
python -m unittest discover ./tests/ 'test*.py'
coverage run -m unittest discover ./tests/ 'test*.py'
coverage xml
- name: Check coverage with CodeCov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
verbose: true