@@ -11,24 +11,25 @@ permissions:
11
11
contents : read
12
12
13
13
jobs :
14
- build :
15
- runs-on : ubuntu-latest
14
+ build :
15
+ runs-on : ubuntu-latest
16
16
17
- steps :
18
- - uses : actions/checkout@v4
19
- - name : Set up Python 3.10
20
- uses : actions/setup-python@v4
21
- with :
22
- python-version : " 3.10"
23
-
24
- - name : Install dependencies
25
- run : |
26
- python -m pip install --upgrade pip
27
- pip install flake8
28
-
29
- - name : Lint with flake8
30
- run : |
31
- # stop the build if there are Python syntax errors or undefined names
32
- flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
33
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - name : Set up Python 3.10
20
+ uses : actions/setup-python@v4
21
+ with :
22
+ python-version : " 3.10"
23
+ - name : Install system dependencies
24
+ run : sudo apt-get install -y portaudio19-dev
25
+ - name : Install dependencies
26
+ run : |
27
+ python -m pip install --upgrade pip
28
+ pip install flake8 pytest
29
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30
+ - name : Lint with flake8
31
+ run : |
32
+ # stop the build if there are Python syntax errors or undefined names
33
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
0 commit comments