-
Notifications
You must be signed in to change notification settings - Fork 55
49 lines (46 loc) · 1.23 KB
/
run_tests.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
44
45
46
47
48
49
name: Clarity Tests
on:
pull_request:
branches:
- main
merge_group:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Testing ~ (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
# cache: 'pip'
# cache-dependency-path: setup.cfg
- name: Install dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq libsndfile1-dev ffmpeg
- name: Install package, including extras
run: |
pip install -e .[tests,docs,dev]
- name: CPU information
run: |
python -m cpuinfo --json
- name: Run pytest
run: |
pytest --cov=clarity --durations 10 .
- name: Determine coverage
run: |
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
# - name: pylint
# run: |
# pylint --rcfile .pylintrc