-
Notifications
You must be signed in to change notification settings - Fork 55
48 lines (40 loc) · 1022 Bytes
/
check.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
name: Test and lint
on:
workflow_dispatch:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
paths:
- '**.py'
- '.github/workflows/**'
- 'pyproject.toml'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install bark
run: |
pip install git+https://github.com/suno-ai/bark.git
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Black check
run: |
black . --check
- name: Isort check
run: |
isort . --check -q
# - name: Lint with flake8
# run: |
# flake8 . --format="::error file=%(path)s,line=%(row)d,col=%(col)d::%(path)s:%(row)d:%(col)d: %(code)s %(text)s"
- name: Test with pytest
run: |
pytest -v