1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
13- python : [3.5 , 3.6 , 3.7 , 3.8 ]
13+ python : [3.6 , 3.7 , 3.8 , 3.9 ]
1414 steps :
1515 - uses : actions/checkout@v2
1616 - uses : actions/setup-python@v2
@@ -19,26 +19,24 @@ jobs:
1919
2020 - name : Add pip bin to PATH
2121 run : |
22- echo "::add-path::/home/runner/.local/bin"
23-
24- - name : Upgrade setuptools
25- if : ${{ matrix.python == '3.5' }}
26- run : pip install --upgrade setuptools
22+ echo "/home/runner/.local/bin" >> $GITHUB_PATH
2723
2824 - name : Install deps with ${{ matrix.python }}
2925 run : pip install ".[test, ci]"
3026
3127 - name : Lint with ${{ matrix.python }}
3228 if : ${{ matrix.python == '3.8' }}
33- run : |
34- black --check stream
35- flake8 --ignore=E501,E225,W293,W503 stream
29+ run : make lint
3630
3731 - name : Install, test and code coverage with ${{ matrix.python }}
3832 env :
3933 STREAM_KEY : ${{ secrets.STREAM_KEY }}
4034 STREAM_SECRET : ${{ secrets.STREAM_SECRET }}
4135 run : |
42- python setup.py test
4336 python setup.py install
44- codecov
37+ make test
38+
39+ - name : " Upload coverage to Codecov"
40+ uses : codecov/codecov-action@v1
41+ with :
42+ fail_ci_if_error : true
0 commit comments